code: def get_data(X):
      if issparse(X):
          return X.indices, X.data, X.indptr, True
      height, width = X.shape
      indptr = np.array(
          [i * width for i in range(height + 1)],
          dtype=np.int32,
          order="C",
      )
      return np.array([]), X.ravel(), indptr, False
  
file_path: neoml/NeoML/Python/neoml/Utils.py
imports: import numpy
  from scipy.sparse import csr_matrix, issparse
  from neoml.Dnn.Dnn import Layer
label_desc: Use image node_id 3 for calling a global function with example usage: get_data(X) and returns: np,  X,  indptr,  False, X,  X,  X,  True