code: def dtype_bits(dtype_in: Union[jnp.dtype, str, np.dtype], /) -> int:
      dtype_str = as_ivy_dtype(dtype_in)
      if "bool" in dtype_str:
          return 1
      return int(
          dtype_str.replace("uint", "")
          .replace("int", "")
          .replace("bfloat", "")
          .replace("float", "")
          .replace("complex", "")
      )
  
imports: import numpy
  import jax.numpy
  from typing import Optional, Union, Sequence, List
  import ivy
  from ivy.functional.backends.jax import JaxArray
  from ivy.functional.ivy.data_type import _handle_nestable_dtype_info
label_desc: Use image node_id 10 for calling a global function with example usage: dtype_bits() and returns: int, int