code: def to_numpy(data):
      try:
          from pandas import DataFrame
  
          if isinstance(data, DataFrame):
              return np.ascontiguousarray(data.values)
      except ImportError:
          pass
      try:
          from scipy.sparse import csr_matrix
  
          if isinstance(data, csr_matrix):
              return data.toarray()
      except ImportError:
          pass
      return data
  
imports: import os
  import numpy
  import daal4py
  from daal4py.oneapi import sycl_buffer
label_desc: Use image node_id 1 for calling a global function with example usage: to_numpy(data) and returns: data, np, data