class_docstr: Extension of jsonargparse's ArgumentParser for pytorch-lightning.
class_docstr_tok: ["Extension","of","jsonargparse","'s","ArgumentParser","for","pytorch-lightning","."]
docstr: Initialize argument parser that supports configuration file input.
  
  For full details of accepted arguments see `ArgumentParser.__init__
  <https://jsonargparse.readthedocs.io/en/stable/#jsonargparse.ArgumentParser.__init__>`_.
  
  Args:
      description: Description of the tool shown when running ``--help``.
      env_prefix: Prefix for environment variables. Set ``default_env=True`` to enable env parsing.
      default_env: Whether to parse environment variables.
code: def __init__(
      self,
      *args: Any,
      description: str = "Lightning Trainer command line tool",
      env_prefix: str = "PL",
      default_env: bool = False,
      **kwargs: Any,
  ) -> None:
      """Initialize argument parser that supports configuration file input.
  
      For full details of accepted arguments see `ArgumentParser.__init__
      <https://jsonargparse.readthedocs.io/en/stable/#jsonargparse.ArgumentParser.__init__>`_.
  
      Args:
          description: Description of the tool shown when running ``--help``.
          env_prefix: Prefix for environment variables. Set ``default_env=True`` to enable env parsing.
          default_env: Whether to parse environment variables.
  
      """
      if not _JSONARGPARSE_SIGNATURES_AVAILABLE:
          raise ModuleNotFoundError(
              f"{_JSONARGPARSE_SIGNATURES_AVAILABLE}"
          )
      super().__init__(
          *args,
          description=description,
          env_prefix=env_prefix,
          default_env=default_env,
          **kwargs,
      )
      self.callback_keys: List[str] = []
      # separate optimizers and lr schedulers to know which were added
      self._optimizers: Dict[
          str, Tuple[Union[Type, Tuple[Type, ...]], str]
      ] = {}
      self._lr_schedulers: Dict[
          str, Tuple[Union[Type, Tuple[Type, ...]], str]
      ] = {}
  
imports: import os
  import sys
  from functools import partial, update_wrapper
  from types import MethodType
  from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Type, Union
  import torch
  from lightning_utilities.core.imports import RequirementCache
  from lightning_utilities.core.rank_zero import _warn
  from torch.optim import Optimizer
  from typing_extensions import override
  import lightning.pytorch
  from lightning.fabric.utilities.cloud_io import get_filesystem
  from lightning.fabric.utilities.types import _TORCH_LRSCHEDULER
  from lightning.pytorch import Callback, LightningDataModule, LightningModule, Trainer, seed_everything
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from lightning.pytorch.utilities.model_helpers import is_overridden
  from lightning.pytorch.utilities.rank_zero import rank_zero_warn
label_desc: Use image node_id 1 to create a new LightningArgumentParser object from inherited base classes: ArgumentParser with example: obj = LightningArgumentParser()