def METHOD_NAME(cls, agent_class: Type[Agent], *args, **kwargs) -> MockContractAgent:
    try:
        mock_agent = cls.__agents[agent_class]
    except KeyError:
        mock_agent = MockContractAgent(agent_class=agent_class)
        cls.__agents[agent_class] = mock_agent
    return mock_agent