class_docstr: When a component has swappable subcomponents, use this object to specify both the
  component type and it's subcomponent types at the same time.
class_docstr_tok: ["When","a","component","has","swappable","subcomponents",",","use","this","object","to","specify","both","the","component","type","and","it","'s","subcomponent","types","at","the","same","time","."]
code: def swappables(self) -> Any:
      return self._subcomponents
  
file_path: ParlAI/parlai/agents/transformer/modules/modular.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import Any, Callable, Dict, Generic, Optional, Type, TypeVar
label_desc: Use image node_id 3 for calling the ModularComponentBuilder obj's underlying member method code with example usage: obj.swappables() and returns: self