code: def check_unsupported_dtype(*, fn, input_dtypes, all_as_kwargs_np):
      """Check whether a function does not support the input data types or the
      output data type.
  
      Parameters
      ----------
      fn
          The function 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 the given input or output data types, False
      otherwise.
      """
      test_unsupported = False
      unsupported_dtypes_fn = ivy.function_unsupported_dtypes(fn)
      supported_dtypes_fn = ivy.function_supported_dtypes(fn)
      if unsupported_dtypes_fn:
          for d in input_dtypes:
              if d in unsupported_dtypes_fn:
                  test_unsupported = True
                  break
          if (
              "dtype" in all_as_kwargs_np
              and all_as_kwargs_np["dtype"] in unsupported_dtypes_fn
          ):
              test_unsupported = True
      if supported_dtypes_fn and not test_unsupported:
          for d in input_dtypes:
              if d not in supported_dtypes_fn:
                  test_unsupported = True
                  break
          if (
              "dtype" in all_as_kwargs_np
              and all_as_kwargs_np["dtype"] not in supported_dtypes_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 5 for calling a global function with example usage: check_unsupported_dtype() and returns: test_unsupported