code: def test_sparse_matrix_input_examples(dict_of_sparse_matrix):
      for example_type, input_example in dict_of_sparse_matrix.items():
          with TempDir() as tmp:
              example = _Example(input_example)
              example.save(tmp.path())
              filename = example.info["artifact_path"]
              assert example.info["type"] == example_type
              parsed_matrix = _read_sparse_matrix_from_json(
                  tmp.path(filename), example_type
              )
              np.testing.assert_array_equal(
                  parsed_matrix.toarray(), input_example.toarray()
              )
  
imports: import json
  import math
  from unittest import mock
  import numpy
  import pandas
  import pytest
  import sklearn.neighbors
  from scipy.sparse import csc_matrix, csr_matrix
  from sklearn import datasets
  from sklearn.base import BaseEstimator, ClassifierMixin
  import mlflow
  from mlflow.models import Model
  from mlflow.models.signature import ModelSignature, infer_signature
  from mlflow.models.utils import _Example, _read_sparse_matrix_from_json, _read_tensor_input_from_json
  from mlflow.types import DataType
  from mlflow.types.schema import ColSpec, Schema, TensorSpec
  from mlflow.types.utils import TensorsNotSupportedException
  from mlflow.utils.file_utils import TempDir
  from mlflow.utils.proto_json_utils import dataframe_from_raw_json
  from tests.helper_functions import AnyStringWith
label_desc: Use image node_id 9 for calling a global function with example usage: test_sparse_matrix_input_examples(dict_of_sparse_matrix) without return types