code: def _save_and_load(matrix):
      fd, tmpfile = tempfile.mkstemp(suffix=".npz")
      os.close(fd)
      try:
          save_npz(tmpfile, matrix)
          loaded_matrix = load_npz(tmpfile)
      finally:
          os.remove(tmpfile)
      return loaded_matrix
  
file_path: catboost/contrib/python/scipy/py3/scipy/sparse/tests/test_matrix_io.py
imports: import os
  import numpy
  import tempfile
  from pytest import raises
  from numpy.testing import assert_equal, assert_
  from scipy.sparse import csc_matrix, csr_matrix, bsr_matrix, dia_matrix, coo_matrix, save_npz, load_npz, dok_matrix
label_desc: Use image node_id 1 for calling a global function with example usage: _save_and_load(matrix) and returns: loaded_matrix