code: def test_min_max(A):
      # Some formats don't support min/max operations, so we skip those here.
      if hasattr(A, "min"):
          assert not isinstance(
              A.min(axis=1), np.matrix
          ), "Expected array, got matrix"
      if hasattr(A, "max"):
          assert not isinstance(
              A.max(axis=1), np.matrix
          ), "Expected array, got matrix"
      if hasattr(A, "argmin"):
          assert not isinstance(
              A.argmin(axis=1), np.matrix
          ), "Expected array, got matrix"
      if hasattr(A, "argmax"):
          assert not isinstance(
              A.argmax(axis=1), np.matrix
          ), "Expected array, got matrix"
  
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 3 for calling a global function with example usage: test_min_max(A) without return types