def METHOD_NAME(is_serial_mode, parameter_server, cfg, env_info, timing: Timing) -> ParameterClient:
    """Parameter client factory."""
    cls = ParameterClientSerial if is_serial_mode else ParameterClientAsync
    return cls(parameter_server, cfg, env_info, timing)