code: def _assert_no_array(args, dtype, scalar_check=False, none=False):
      if args:
          first_arg = args[0]
          fn_func = (
              ivy.as_ivy_dtype(dtype)
              if ivy.exists(dtype)
              else ivy.dtype(first_arg)
          )
  
          def assert_fn(x):
              return ivy.dtype(x) == fn_func
  
          if scalar_check:
  
              def assert_fn(x):  # noqa F811
                  return (
                      ivy.dtype(x) == fn_func
                      if ivy.shape(x) != ()
                      else _casting_no_special_case(
                          ivy.dtype(x), fn_func, none
                      )
                  )
  
          ivy.utils.assertions.check_all_or_any_fn(
              *args,
              fn=assert_fn,
              type="all",
              message=f"type of input is incompatible with dtype: {dtype}",
          )
  
imports: import functools
  from typing import Callable, Any
  import inspect
  import platform
  import ivy
  import ivy.functional.frontends.numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _assert_no_array(args, dtype, scalar_check, none) and returns: unknown, unknown