code: def check_unsupported_device_and_dtype(
      *, fn, device, input_dtypes, all_as_kwargs_np
  ):
      """Check whether a function does not support a given device or data types.
  
      Parameters
      ----------
      fn
          The function to check.
      device
          The backend device to check.
      input_dtypes
          data-types of the input arguments and keyword-arguments.
      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 both the device and any data type, False
      otherwise.
      """
      unsupported_devices_dtypes_fn = (
          ivy.function_unsupported_devices_and_dtypes(fn)
      )
  
      if device in unsupported_devices_dtypes_fn:
          for d in input_dtypes:
              if d in unsupported_devices_dtypes_fn[device]:
                  return True
  
      if "device" in all_as_kwargs_np and "dtype" in all_as_kwargs_np:
          dev = all_as_kwargs_np["device"]
          dtype = all_as_kwargs_np["dtype"]
          if dtype in unsupported_devices_dtypes_fn.get(dev, []):
              return True
  
      return False
  
file_path: ivy/ivy_tests/test_ivy/helpers/assertions.py
imports: import ivy
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: check_unsupported_device_and_dtype() and returns: False, True, True