code: def _check_arg(arg):
      if isinstance(arg, Number):
          return True
  
      if isinstance(arg, (DATAFRAME_TYPE, SERIES_TYPE)):
          return True
  
      try:
          astensor(arg)
          return True
      except ValueError:
          return False
  
imports: from numbers import Number
  from ...tensor import tensor
  from ...tensor.ufunc.ufunc import UFUNC_TO_TENSOR_FUNCS
  from ..core import DATAFRAME_TYPE, SERIES_TYPE
label_desc: Use image node_id 1 for calling a global function with example usage: _check_arg(arg) and returns: True, True, True, False