code: def convert_matrix(matrix):
      if sp.sparse.issparse(matrix):
          matrix = matrix.todense()
      if is_multi_dimensional(matrix):
          matrix = matrix.tolist()
      return matrix
  
file_path: MachineLearningNotebooks/how-to-use-azureml/automated-machine-learning/regression-explanation-featurization/score_explain.py
imports: import pandas
  import joblib
  from azureml.core.model import Model
  from azureml.train.automl.runtime.automl_explain_utilities import automl_setup_model_explanations
  import scipy
label_desc: Use image node_id 3 for calling a global function with example usage: convert_matrix(matrix) and returns: matrix