code: def _infer_dtype(dtype: tf.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 Union, Optional, Tuple, Sequence
  import tensorflow
  from tensorflow.python.ops.numpy_ops import np_math_ops
  import ivy
  from ivy import with_unsupported_dtypes, with_supported_dtypes, with_supported_device_and_dtypes
  from ..None import backend_version
  from copy import deepcopy
label_desc: Use image node_id 5 for calling a global function with example usage: _infer_dtype(dtype) and returns: dtype, default_dtype