code: def dtype_bits(dtype_in: Union[paddle.dtype, str], /) -> int:
      dtype_str = as_ivy_dtype(dtype_in)
      if "bool" in dtype_str:
          return 1
      return int(
          dtype_str.replace("paddle.", "")
          .replace("uint", "")
          .replace("int", "")
          .replace("bfloat", "")
          .replace("float", "")
          .replace("complex", "")
      )
  
imports: from typing import Optional, Union, Sequence, List
  import paddle
  import ivy.functional.backends.paddle
  import numpy
  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