code: def _check_same_length(self, trajs_tuple):
          
          lens = [len(trajs) for trajs in trajs_tuple]
          if len(set(lens)) > 1:
              err = "Each dataset must be the same length. You gave: {}"
              err = err.format(lens)
              raise ValueError(err)
docs: Check that the datasets are the same length