code: def pad_to_same(obj):
      
      if not isinstance(obj, Multitrack):
          raise TypeError("Support only `pypianoroll.Multitrack` class objects")
      copied = deepcopy(obj)
      copied.pad_to_same()
      return copied
docs: Return a copy of the object with shorter piano-rolls padded with zeros
      at the end along the time axis to the length of the piano-roll with the
      maximal length.