code: def _assert_no_scalar(args, dtype, none=False):
      if args:
          first_arg = args[0]
          ivy.utils.assertions.check_all_or_any_fn(
              *args,
              fn=lambda x: type(x) == type(first_arg),  # noqa: E721
              type="all",
              message=f"type of input is incompatible with dtype: {dtype}",
          )
          if dtype:
              if ivy.is_int_dtype(dtype):
                  check_dtype = int
              elif ivy.is_float_dtype(dtype):
                  check_dtype = float
              else:
                  check_dtype = bool
              ivy.utils.assertions.check_equal(
                  type(args[0]),
                  check_dtype,
                  message=f"type of input is incompatible with dtype: {dtype}",
                  as_array=False,
              )
              if ivy.as_ivy_dtype(dtype) not in [
                  "float64",
                  "int8",
                  "int64",
                  "uint8",
              ]:
                  if isinstance(args[0], int):
                      ivy.utils.assertions.check_elem_in_list(
                          dtype,
                          [
                              "int16",
                              "int32",
                              "uint16",
                              "uint32",
                              "uint64",
                          ],
                          inverse=True,
                      )
                  elif isinstance(args[0], float):
                      ivy.utils.assertions.check_equal(
                          dtype, "float32", inverse=True, as_array=False
                      )
  
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 3 for calling a global function with example usage: _assert_no_scalar(args, dtype, none) without return types