code: def empty_list(value: Any, *, nested: bool) -> bool:
      """Check if value is an empty list, or a list that contains only empty lists."""
      if isinstance(value, list):
          return (
              True
              if value and not nested
              else all(empty_list(v, nested=True) for v in value)
          )
      return False
  
imports: from __future__ import annotations
  import random
  import warnings
  from dataclasses import dataclass
  from math import isfinite
  from textwrap import dedent
  from typing import TYPE_CHECKING, Any, Collection, Sequence, overload
  from hypothesis.errors import InvalidArgument, NonInteractiveExampleWarning
  from hypothesis.strategies import booleans, composite, lists, sampled_from
  from hypothesis.strategies._internal.utils import defines_strategy
  from polars.dataframe import DataFrame
  from polars.datatypes import DTYPE_TEMPORAL_UNITS, Categorical, DataType, DataTypeClass, Datetime, Duration, List, is_polars_dtype, py_type_to_dtype
  from polars.series import Series
  from polars.string_cache import StringCache
  from polars.testing.parametric.strategies import _flexhash, all_strategies, between, create_list_strategy, scalar_strategies
label_desc: Use image node_id 1 for calling a global function with example usage: empty_list(value) and returns: False, unknown