code: def check_is_type(obj, /, classinfo, *, name="Object"):
      """Check if an object is one of the given type or types.
  
      Notes
      -----
      The use of :func:`check_is_instance` is generally preferred as it
      allows subclasses. Use :func:`check_is_type` only for cases where
      exact types are necessary.
  
      Parameters
      ----------
      obj : Any
          Object to check.
  
      classinfo : type | tuple[type, ...]
          ``type`` or tuple of types. Object must be one of the types.
  
      name : str, default: "Object"
          Variable name to use in the error messages if any are raised.
  
      Raises
      ------
      TypeError
          If object is not any of the given types.
  
      See Also
      --------
      check_is_instance
  
      Examples
      --------
      Check if an object is type ``dict`` or ``set``.
  
      >>> import pyvista.core.input_validation as valid
      >>> valid.check_is_type({'spam': "eggs"}, (dict, set))
  
      """
      try:
          check_is_instance(
              obj, classinfo, allow_subclass=False, name=name
          )
      except TypeError:
          raise
  
imports: from collections.abc import Iterable, Sequence
  from numbers import Number
  from typing import Tuple, Union, get_args, get_origin
  import numpy
  from pyvista.core.utilities.arrays import cast_to_ndarray
label_desc: Use image node_id 18 for calling a global function with example usage: check_is_type(classinfo) without return types