code: def check_pianoroll(arr):
      
      if not isinstance(arr, np.ndarray):
          raise TypeError("`arr` must be of np.ndarray type")
      if not (np.issubdtype(arr.dtype, np.bool_)
              or np.issubdtype(arr.dtype, np.number)):
          return False
      if arr.ndim != 2:
          return False
      if arr.shape[1] != 128:
          return False
      return True
docs: Return True if the array is a standard piano-roll matrix. Otherwise,
      return False. Raise TypeError if the input object is not a numpy array.