code: def _is_list_like(x: Any) -> bool:
      try:
          _ = x[0]
          _ = len(x)
          return True
      except (TypeError, IndexError, KeyError):
          return False
  
imports: from dataclasses import dataclass
  from functools import reduce
  from typing import Any, ClassVar, Dict, List, Optional, Tuple, Type, Union, cast
  import numpy
  import torch
  from torch import Tensor
  from flash.core.data.utilities.sort import sorted_alphanumeric
  from flash.core.utilities.imports import _TOPIC_CORE_AVAILABLE
label_desc: Use image node_id 1 for calling a global function with example usage: _is_list_like(x) and returns: True, False