code: def data_shape(X: modALinput):
      """
      Returns the shape of the data set X
      """
      try:
          # scipy.sparse, torch, pandas and numpy all support .shape
          return X.shape
      except:
          if isinstance(X, list):
              return np.array(X).shape
  
      raise TypeError("%s datatype is not supported" % type(X))
  
file_path: modAL/modAL/utils/data.py
imports: from typing import List, Sequence, Union
  import numpy
  import pandas
  import scipy.sparse
label_desc: Use image node_id 7 for calling a global function with example usage: data_shape(X) and returns: X, np