code: def test_format_property():
      for fmt in sparray_types:
          arr_cls = getattr(scipy.sparse, f"{fmt}_array")
          M = arr_cls([[1, 2]])
          assert M.format == fmt
          assert M._format == fmt
          with pytest.raises(AttributeError):
              M.format = "qqq"
  
imports: import pytest
  import numpy
  import numpy.testing
  import scipy.sparse
  import scipy.sparse.linalg
  from scipy._lib._util import VisibleDeprecationWarning
label_desc: Use image node_id 46 for calling a global function with example usage: test_format_property() without return types