class_docstr: Base class for all strategies that change the behaviour of the training, validation and test- loop.
class_docstr_tok: ["Base","class","for","all","strategies","that","change","the","behaviour","of","the","training",",","validation","and","test-","loop","."]
code: def _err_msg_joint_setup_required(self) -> str:
      return (
          f"The `{type(self).__name__}` does not support setting up the module and optimizer(s) independently."
          " Please call `setup_module_and_optimizers(model, [optimizer, ...])` to jointly set them up."
      )
  
imports: import logging
  from abc import ABC, abstractmethod
  from contextlib import ExitStack
  from typing import Any, Callable, ContextManager, Dict, Iterable, List, Optional, Tuple, TypeVar, Union
  import torch
  from torch import Tensor
  from torch.nn import Module
  from torch.optim import Optimizer
  from torch.utils.data import DataLoader
  from lightning.fabric.accelerators import Accelerator
  from lightning.fabric.plugins.io.checkpoint_io import CheckpointIO
  from lightning.fabric.plugins.io.torch_io import TorchCheckpointIO
  from lightning.fabric.plugins.precision import Precision
  from lightning.fabric.strategies.launchers.launcher import _Launcher
  from lightning.fabric.strategies.registry import _StrategyRegistry
  from lightning.fabric.utilities.apply_func import move_data_to_device
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_1_13, _TORCH_GREATER_EQUAL_2_0
  from lightning.fabric.utilities.init import _EmptyInit
  from lightning.fabric.utilities.types import _PATH, Optimizable, ReduceOp, _Stateful
label_desc: Use image node_id 37 for calling the Strategy obj's underlying member method code with example usage: obj._err_msg_joint_setup_required() and returns: str, type, str