code: def is_scalar_list(udf_return_col: Any) -> bool:
      """Check whether a UDF column is is a scalar list."""
  
      return isinstance(udf_return_col, list) and (
          not udf_return_col or np.isscalar(udf_return_col[0])
      )
  
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 3 for calling a global function with example usage: is_scalar_list(udf_return_col) and returns: unknown