class_docstr: This class is used to detect if an object is stateful using `isinstance(obj, _Stateful)`.
class_docstr_tok: ["This","class","is","used","to","detect","if","an","object","is","stateful","using","`","isinstance","(","obj",",","_Stateful",")","`","."]
code: def load_state_dict(self, state_dict: Dict[_DictKey, Any]) -> None:
      ...
  
imports: from pathlib import Path
  from typing import Any, Callable, DefaultDict, Dict, Iterator, List, Optional, Protocol, TypeVar, Union, runtime_checkable
  import torch
  from torch import Tensor
  from torch.optim import Optimizer
  from typing_extensions import TypeAlias, overload
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_1_13, _TORCH_GREATER_EQUAL_2_0
label_desc: Use image node_id 2 for calling the _Stateful obj's underlying member method code with example usage: obj.load_state_dict(state_dict) without return types