code: def is_python_scalar(val):
      return not isinstance(val, np.generic) and isinstance(
          val, (bool, int, float, complex)
      )
  
imports: from functools import partial
  import operator
  from jax._src import api
  from jax._src import config
  from jax._src import dtypes
  from jax._src.tree_util import tree_map, tree_reduce
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: is_python_scalar(val) and returns: unknown