def METHOD_NAME(api_client):
    config = packet_generator_config(**GENERATOR_CONFIG_DEFAULT)
    gen = client.models.PacketGenerator()
    gen.target_id = get_first_port_id(api_client)
    gen.config = config
    return gen