code: def is_inside_bounds(point, bounds):
      """Check if a point is inside a set of bounds.
  
      This is implemented through recursion so that this is N-dimensional.
  
      Parameters
      ----------
      point : sequence[float]
          Three item cartesian point (i.e. ``[x, y, z]``).
  
      bounds : sequence[float]
          Six item bounds in the form of ``(xMin, xMax, yMin, yMax, zMin, zMax)``.
  
      Returns
      -------
      bool
          ``True`` when ``point`` is inside ``bounds``.
  
      """
      if isinstance(point, (int, float)):
          point = [point]
      if isinstance(
          point, (np.ndarray, collections.abc.Sequence)
      ) and not isinstance(point, collections.deque):
          if len(bounds) < 2 * len(point) or len(bounds) % 2 != 0:
              raise ValueError("Bounds mismatch point dimensionality")
          point = collections.deque(point)
          bounds = collections.deque(bounds)
          return is_inside_bounds(point, bounds)
      if not isinstance(point, collections.deque):
          raise TypeError(f"Unknown input data type ({type(point)}).")
      if len(point) < 1:
          return True
      p = point.popleft()
      lower, upper = bounds.popleft(), bounds.popleft()
      if lower <= p <= upper:
          return is_inside_bounds(point, bounds)
      return False
  
file_path: pyvista/pyvista/core/utilities/helpers.py
imports: import collections
  from typing import TYPE_CHECKING, Optional, Union, cast
  import numpy
  import pyvista
  from pyvista.core import _vtk_core
  from .None import transformations
  from .fileio import from_meshio, is_meshio_mesh
label_desc: Use image node_id 5 for calling a global function with example usage: is_inside_bounds(point, bounds) and returns: False, is_inside_bounds, True, is_inside_bounds