code: def _infer_dtype(dtype: paddle.dtype):
      default_dtype = ivy.infer_default_dtype(dtype)
      if ivy.dtype_bits(dtype) < ivy.dtype_bits(default_dtype):
          return default_dtype
      return dtype
  
imports: from typing import Optional, Union, Tuple, Sequence, Any
  import paddle
  import ivy.functional.backends.paddle
  import ivy
  from copy import deepcopy
  from ivy.func_wrapper import with_unsupported_device_and_dtypes, with_supported_dtypes
  from .None import backend_version
label_desc: Use image node_id 3 for calling a global function with example usage: _infer_dtype(dtype) and returns: dtype, default_dtype