code: def _is_sparse(cls, *args):
      if not args or all(np.isscalar(x) for x in args):
          return False
      if all(
          np.isscalar(x) or (hasattr(x, "issparse") and x.issparse())
          for x in args
      ):
          return True
      return False
  
file_path: mars/mars/tensor/arithmetic/multiply.py
imports: import numpy
  from functools import reduce
  from ...None import opcodes
  from ...serialization.serializables import BoolField
  from ..array_utils import device, as_same_device
  from ..datasource import scalar
  from ..utils import infer_dtype
  from .core import TensorBinOp, TensorMultiOp
  from .utils import arithmetic_operand, tree_op_estimate_size, TreeReductionBuilder
label_desc: Use image node_id 2 for calling the TensorTreeMultiply obj's underlying member method code with example usage: obj._is_sparse(cls) and returns: False, False, True