code: def get_array_module(x, nosparse=False):
      if issparse(x):
          if nosparse:
              return get_dense_module(x)
          return sparse
      if cp:
          return cp.get_array_module(x)
      return np
  
file_path: mars/mars/tensor/array_utils.py
imports: from collections import defaultdict
  from contextlib import contextmanager
  import numpy
  from ..lib import sparse
  from ..lib.sparse.core import issparse, get_dense_module
  from ..utils import lazy_import
label_desc: Use image node_id 3 for calling a global function with example usage: get_array_module(x, nosparse) and returns: np, sparse, cp, get_dense_module