code: def isspmatrix_lil(x):
      """Is x of lil_matrix type?
  
      Parameters
      ----------
      x
          object to check for being a lil matrix
  
      Returns
      -------
      bool
          True if x is a lil matrix, False otherwise
  
      Examples
      --------
      >>> from scipy.sparse import lil_matrix, isspmatrix_lil
      >>> isspmatrix_lil(lil_matrix([[5]]))
      True
  
      >>> from scipy.sparse import lil_matrix, csr_matrix, isspmatrix_lil
      >>> isspmatrix_lil(csr_matrix([[5]]))
      False
      """
      return isinstance(x, lil_matrix)
  
imports: from bisect import bisect_left
  import numpy
  from .base import spmatrix, isspmatrix
  from ._index import IndexMixin, INT_TYPES, _broadcast_arrays
  from .sputils import getdtype, isshape, isscalarlike, upcast_scalar, get_index_dtype, check_shape, check_reshape_kwargs, asmatrix
  from .None import _csparsetools
label_desc: Use image node_id 2 for calling a global function with example usage: isspmatrix_lil(x) and returns: isinstance