code: def with_components(
      cls, **kwargs
  ) -> ModularComponentBuilder[ModularComponent[C]]:
      return ModularComponentBuilder(
          klass=cls, subcomponents=cls.SwappableSubcomponents(**kwargs)
      )
  
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 1 for calling the ModularComponent obj's underlying member method code with example usage: obj.with_components(cls) and returns: ModularComponentBuilder