code: def mv_data_check(data, check):
      # Check pandas or numpy
  
      if isinstance(data, pd.DataFrame):
          data_index = data.index
          transformed_data = data.values
          data_name = data.columns.values
          is_pandas = True
  
      elif isinstance(data, np.ndarray):
          data_name = np.asarray(range(1, len(data[0]) + 1))
          is_pandas = False
          transformed_data = data
          data_index = list(range(len(data[0])))
  
      else:
          raise Exception(
              "The data input is not pandas or numpy compatible!"
          )
  
      return transformed_data, data_name, is_pandas, data_index
  
label_desc: Use image node_id 2 for calling a global function with example usage: mv_data_check(data, check) and returns: transformed_data,  data_name,  is_pandas,  data_index