code: def isscalar(element):
      return isinstance(
          element,
          (
              int,
              float,
              complex,
              bool,
              bytes,
              str,
              memoryview,
              numbers.Number,
              np_frontend.generic,
          ),
      )
  
file_path: ivy/ivy/functional/frontends/numpy/logic/truth_value_testing.py
imports: import ivy
  import numbers
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, from_zero_dim_arrays_to_scalar, handle_numpy_out
  import ivy.functional.frontends.numpy
label_desc: Use image node_id 8 for calling a global function with example usage: isscalar(element) and returns: isinstance