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