code: def list(
      query: str = "",
      limit: int = 50,
      before: Optional[int] = None,
      full: bool = False,
      output: ExtendedOutputFormatOption = ExtendedOutputFormat.GRID,
  ):
      """List batches."""
      list_batches.list(query, limit, before, full, output)
  
imports: import asyncio
  from enum import Enum
  import typer
  from typer import Option, Argument
  import json
  from typing import Optional, List, Annotated, cast, Dict, Any
  from .None import list_batches
  from .None import billing
  from .initialize import async_basic_initialize
  from .None import submit
  from .batch_cli_utils import get_batch_if_exists, get_job_if_exists, make_formatter, StructuredFormat, StructuredFormatOption, StructuredFormatPlusText, StructuredFormatPlusTextOption, ExtendedOutputFormat, ExtendedOutputFormatOption
label_desc: Use image node_id 1 for calling a global function with example usage: list(query, limit, before, full, output) without return types