code: def is_array_like(value: Any) -> bool:
      """Checks whether objects are array-like, excluding numpy scalars."""
  
      return hasattr(value, "__array__") and hasattr(value, "__len__")
  
file_path: ray/python/ray/data/_internal/numpy_support.py
imports: from typing import Any
  import numpy
  from ray.air.util.tensor_extensions.utils import create_ragged_ndarray
  from ray.data._internal.dataset_logger import DatasetLogger
  from ray.data._internal.util import _truncated_repr
label_desc: Use image node_id 1 for calling a global function with example usage: is_array_like(value) and returns: unknown