code: def test_as_native_dev(
      *, dtype_and_x, test_flags, on_device, backend_fw
  ):
      dtype, x = dtype_and_x
      dtype = dtype[0]
      x = x[0]
  
      with BackendHandler.update_backend(backend_fw) as ivy_backend:
          for device in _get_possible_devices():
              x = ivy_backend.asarray(x, device=on_device)
              if test_flags.as_variable:
                  x = ivy_backend.functional.ivy.gradients._variable(x)
  
              device = ivy_backend.as_native_dev(on_device)
              ret = ivy_backend.as_native_dev(ivy_backend.dev(x))
              # value test
              if backend_fw == "tensorflow":
                  assert "/" + ":".join(
                      ret[1:].split(":")[-2:]
                  ) == "/" + ":".join(device[1:].split(":")[-2:])
              elif backend_fw == "torch":
                  assert ret.type == device.type
              elif backend_fw == "paddle":
                  assert ret._equals(device)
              else:
                  assert ret == device
  
imports: import io
  import multiprocessing
  import os
  import re
  import shutil
  import sys
  import warnings
  import numpy
  import psutil
  import subprocess
  from hypothesis import strategies, assume
  import ivy
  import ivy_tests.test_ivy.helpers
  import ivy_tests.test_ivy.helpers.globals
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
label_desc: Use image node_id 10 for calling a global function with example usage: test_as_native_dev() without return types