code: def check_is_arraylike(arr):
      """Check if an input can be cast as a NumPy ndarray.
  
      Notes
      -----
      This check is done by calling :func:`~pyvista.core.utilities.arrays.cast_to_ndarray`
      internally. Use that function directly if the cast array is needed
      for further processing.
  
      Parameters
      ----------
      arr : array_like
          Array to check.
  
      Raises
      ------
      ValueError
          If input cannot be cast as a NumPy ndarray.
  
      See Also
      --------
      check_is_dtypelike
  
      Examples
      --------
      Check if an input is array-like.
  
      >>> import pyvista.core.input_validation as valid
      >>> valid.check_is_arraylike([1, 2, 3])
  
      """
      try:
          cast_to_ndarray(arr) if not isinstance(
              arr, np.ndarray
          ) else None
      except ValueError:
          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 3 for calling a global function with example usage: check_is_arraylike(arr) without return types