code: def _check_for_scipy_mat_struct(data):  # taken from pymatreader.utils
      """Convert all scipy.io.matlab.mio5_params.mat_struct elements."""
      if isinstance(data, dict):
          for key in data:
              data[key] = _check_for_scipy_mat_struct(data[key])
  
      if isinstance(data, MatlabOpaque):
          try:
              if data[0][2] == b"string":
                  return None
          except IndexError:
              pass
  
      if isinstance(data, np.ndarray):
          data = _handle_scipy_ndarray(data)
  
      return data
  
imports: import numpy
  from scipy.io import loadmat
  from ...utils import _import_pymatreader_funcs
label_desc: Use image node_id 3 for calling a global function with example usage: _check_for_scipy_mat_struct(data) and returns: data, None