Describe the bug
In the function get_metadata() of _BatchedEnv the tensordict expand method is called in a wrong manner:
self.meta_data = get_env_metadata(
create_env_fn[0], create_env_kwargs[0]
).expand(self.num_workers)
As per docs, expand should be called with an argument which is the concatenation of the new dims to the old dims
To Reproduce
Create a ParallelEnv from a BaseEnv with non-empy batch_size