code: def isspmatrix_coo(x):
      """Is `x` of coo_matrix type?
  
      Parameters
      ----------
      x
          object to check for being a coo matrix
  
      Returns
      -------
      bool
          True if `x` is a coo matrix, False otherwise
  
      Examples
      --------
      >>> from scipy.sparse import coo_array, coo_matrix, csr_matrix, isspmatrix_coo
      >>> isspmatrix_coo(coo_matrix([[5]]))
      True
      >>> isspmatrix_coo(coo_array([[5]]))
      False
      >>> isspmatrix_coo(csr_matrix([[5]]))
      False
      """
      return isinstance(x, coo_matrix)
  
imports: import math
  from warnings import warn
  import numpy
  from ._matrix import spmatrix
  from ._sparsetools import coo_tocsr, coo_todense, coo_matvec
  from ._base import issparse, SparseEfficiencyWarning, _spbase, sparray
  from ._data import _data_matrix, _minmax_mixin
  from ._sputils import upcast, upcast_char, to_native, isshape, getdtype, getdata, downcast_intp_index, get_index_dtype, check_shape, check_reshape_kwargs
  import operator
label_desc: Use image node_id 2 for calling a global function with example usage: isspmatrix_coo(x) and returns: isinstance