code: def dev(
      x: paddle.Tensor, /, *, as_native: bool = False
  ) -> Union[ivy.Device, core.Place]:
      return x.place if as_native else as_ivy_dev(x.place)
  
imports: import os
  import paddle
  from typing import Optional, Union
  import time
  import ivy
  from ivy.functional.ivy.device import _shift_native_arrays_on_default_device, Profiler
  from paddle.device import core
label_desc: Use image node_id 1 for calling a global function with example usage: dev() and returns: unknown