def METHOD_NAME(
    cls,
    neard_home: Path,
    consul: Consul,
    kneard: Path,
    command: Command,
    ports: Ports,
    near_network: NearNetwork,
    kneard_ctl: Path,
    debug: bool,
) -> Kuutamod:
    exporter_port = ports.allocate(3)
    validator_port = exporter_port + 1
    voter_port = exporter_port + 2
    validator_key = near_network.home / "node3" / "validator_key.json"
    validator_node_key = near_network.home / "node3" / "node_key.json"
    voter_node_key = neard_home / "voter_node_key.json"
    node_id = str(neard_home.name)
    control_socket = neard_home / "kuutamod.sock"
    env = dict(
        KUUTAMO_CONSUL_URL=f"http://127.0.0.1:{consul.http_port}",
        KUUTAMO_NODE_ID=str(neard_home.name),
        KUUTAMO_EXPORTER_ADDRESS=f"127.0.0.1:{exporter_port}",
        KUUTAMO_VALIDATOR_NETWORK_ADDR=f"127.0.0.1:{validator_port}",
        KUUTAMO_VOTER_NETWORK_ADDR=f"127.0.0.1:{voter_port}",
        KUUTAMO_VALIDATOR_KEY=str(validator_key),
        KUUTAMO_VALIDATOR_NODE_KEY=str(validator_node_key),
        KUUTAMO_VOTER_NODE_KEY=str(voter_node_key),
        KUUTAMO_NEARD_HOME=str(neard_home),
        KUUTAMO_NEARD_BOOTNODES=near_network.bootstrap_node,
        KUUTAMO_CONTROL_SOCKET=str(control_socket),
        RUST_BACKTRACE="1",
    )
    config = json.load(open(neard_home / "config.json"))
    if debug:
        proc = command.METHOD_NAME(
            [str(kneard)],
            extra_env=env,
            stderr=open(neard_home / f"{neard_home.name}-debug.txt", "w"),
        )
    else:
        proc = command.METHOD_NAME([str(kneard)], extra_env=env)
    wait_for_port("127.0.0.1", exporter_port)
    instance = cls(
        proc=proc,
        exporter_port=exporter_port,
        node_id=node_id,
        validator_port=validator_port,
        voter_port=voter_port,
        control_socket=control_socket,
        neard_home=neard_home,
        command=command,
        rpc_port=int(config["rpc"]["addr"].split(":")[-1]),
        kneard_ctl=kneard_ctl,
    )
    if debug:
        instance.enable_neard_debug()
    return instance