code: def _is_arraylike(x: Any) -> bool:
      return (
          hasattr(x, "__len__")
          or hasattr(x, "shape")
          or hasattr(x, "__array__")
      )
  
imports: from __future__ import annotations
  from collections.abc import Callable
  from collections.abc import Iterable
  from collections.abc import Mapping
  from logging import DEBUG
  from logging import INFO
  from logging import WARNING
  from numbers import Integral
  from numbers import Number
  from time import time
  from typing import Any
  from typing import List
  from typing import Union
  import numpy
  from optuna import distributions
  from optuna import logging
  from optuna import samplers
  from optuna import study
  from optuna import TrialPruned
  from optuna._experimental import experimental_class
  from optuna._imports import try_import
  from optuna.distributions import _convert_old_distribution_to_new_distribution
  from optuna.study import StudyDirection
  from optuna.terminator import report_cross_validation_scores
  from optuna.trial import FrozenTrial
  from optuna.trial import Trial
label_desc: Use image node_id 2 for calling a global function with example usage: _is_arraylike(x) and returns: unknown