code: def as_native_dev(device: str, /):
      if isinstance(device, str) and "/" in device:
          return device
      ret = f"/{ivy.Device(device).upper()}"
      if not ret[-1].isnumeric():
          ret += ":0"
      return ret
  
imports: import tensorflow
  from typing import Union, Optional
  import ivy
  from ivy.functional.ivy.device import Profiler
label_desc: Use image node_id 5 for calling a global function with example usage: as_native_dev() and returns: ret, device