code: def check_unsupported_device(*, fn, input_device, all_as_kwargs_np):
      """Check whether a function does not support a given device.
  
      Parameters
      ----------
      fn
          The function to check.
      input_device
          The backend device.
      all_as_kwargs_np
          All arguments in Numpy Format, to check for the presence of dtype argument.
  
      Returns
      -------
      True if the function does not support the given device, False otherwise.
      """
      test_unsupported = False
      unsupported_devices_fn = ivy.function_unsupported_devices(fn)
      supported_devices_fn = ivy.function_supported_devices(fn)
      if unsupported_devices_fn:
          if input_device in unsupported_devices_fn:
              test_unsupported = True
          if (
              "device" in all_as_kwargs_np
              and all_as_kwargs_np["device"] in unsupported_devices_fn
          ):
              test_unsupported = True
      if supported_devices_fn and not test_unsupported:
          if input_device not in supported_devices_fn:
              test_unsupported = True
          if (
              "device" in all_as_kwargs_np
              and all_as_kwargs_np["device"] not in supported_devices_fn
          ):
              test_unsupported = True
      return test_unsupported
  
file_path: ivy/ivy_tests/test_ivy/helpers/assertions.py
imports: import ivy
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: check_unsupported_device() and returns: test_unsupported