code: def to_ivy_dtype(dtype):
      if not dtype or isinstance(dtype, str):
          return dtype
      if isinstance(dtype, np_frontend.dtype):
          return dtype.ivy_dtype
      return frontend.as_dtype(dtype).ivy_dtype
  
file_path: ivy/ivy/functional/frontends/tensorflow/func_wrapper.py
imports: import inspect
  from typing import Callable, Dict, Optional
  import functools
  import ivy
  import ivy.functional.frontends.tensorflow
  import ivy.functional.frontends.numpy
label_desc: Use image node_id 11 for calling a global function with example usage: to_ivy_dtype(dtype) and returns: frontend, dtype, dtype