This code works for calculating norm_stats for openVLA. This currently supports datasets from open-X embodiment and custom rlds datasets.
might have to register the dataset if using custom dataset in prismatic/vla/datasets/rlds/oxe/configs.py and /prismatic/vla/datasets/rlds/oxe/transforms.py