code: def _check_arg(arg):
      if isinstance(arg, Number):
          return True
  
      try:
          astensor(arg)
          return True
      except ValueError:
          return False
  
file_path: mars/mars/tensor/ufunc/ufunc.py
imports: from numbers import Number
  import numpy
  from ..datasource import tensor
  from ..None import arithmetic, reduction
label_desc: Use image node_id 1 for calling a global function with example usage: _check_arg(arg) and returns: True, True, False