code: def as_ivy_dtype(
      dtype_in: Union[paddle.dtype, str, bool, int, float], /
  ) -> ivy.Dtype:
      if dtype_in is int:
          return ivy.default_int_dtype()
      if dtype_in is float:
          return ivy.default_float_dtype()
      if dtype_in is complex:
          return ivy.default_complex_dtype()
      if dtype_in is bool:
          return ivy.Dtype("bool")
      if isinstance(dtype_in, str):
          if dtype_in in native_dtype_dict:
              return ivy.Dtype(dtype_in)
          else:
              raise ivy.utils.exceptions.IvyException(
                  "Cannot convert to ivy dtype."
                  f" {dtype_in} is not supported by Paddle backend."
              )
      return ivy.Dtype(ivy_dtype_dict[dtype_in])
  
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 7 for calling a global function with example usage: as_ivy_dtype() and returns: ivy, ivy, ivy, ivy, ivy, ivy