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