def METHOD_NAME(snappi_api,                  # noqa F811
                                           snappi_testbed_config,       # noqa F811
                                           conn_graph_facts,            # noqa F811
                                           fanout_graph_facts,          # noqa F811
                                           duthosts,
                                           rand_one_dut_hostname,
                                           rand_one_dut_portname_oper_up,
                                           lossless_prio_list,          # noqa F811
                                           lossy_prio_list,             # noqa F811
                                           prio_dscp_map,               # noqa F811
                                           enum_pfc_pause_delay_test_params):
    """
    Test headroom capacity for DUT for multiple lossless priorities
    Args:
        snappi_api (pytest fixture): SNAPPI session
        snappi_testbed_config (pytest fixture): testbed configuration information
        conn_graph_facts (pytest fixture): connection graph
        fanout_graph_facts (pytest fixture): fanout graph
        duthosts (pytest fixture): list of DUTs
        rand_one_dut_hostname (str): hostname of DUT
        rand_one_dut_portname_oper_up (str): port to test, e.g., 's6100-1|Ethernet0'
        lossless_prio_list (pytest fixture): list of all the lossless priorities
        lossy_prio_list (pytest fixture): list of all the lossy priorities
        prio_dscp_map (pytest fixture): priority vs. DSCP map (key = priority).
        enum_pfc_pause_delay_test_params (str): pfc delay value to test,
                                                  and delay responses e.g. "200|False"
    Returns:
        N/A
    """
    pytest_require(enum_pfc_pause_delay_test_params is not None,
                   "Skip this testcase since pfc pause delay values have not been configured yet")
    dut_hostname, dut_port = rand_one_dut_portname_oper_up.split('|')
    pytest_require(rand_one_dut_hostname == dut_hostname,
                   "Port is not mapped to the expected DUT")
    testbed_config, port_config_list = snappi_testbed_config
    duthost = duthosts[rand_one_dut_hostname]
    pause_prio_list = lossless_prio_list
    test_prio_list = lossless_prio_list
    bg_prio_list = lossy_prio_list
    """ Populate headroom test params """
    _, pfc_pause_delay_str, headroom_test_result_str = enum_pfc_pause_delay_test_params.split(
        '|')
    pfc_pause_delay = int(pfc_pause_delay_str)
    headroom_test_result = True if headroom_test_result_str == 'True' else False
    headroom_test_params = [pfc_pause_delay, headroom_test_result]
    snappi_extra_params = SnappiTestParams()
    snappi_extra_params.headroom_test_params = headroom_test_params
    run_pfc_test(api=snappi_api,
                 testbed_config=testbed_config,
                 port_config_list=port_config_list,
                 conn_data=conn_graph_facts,
                 fanout_data=fanout_graph_facts,
                 duthost=duthost,
                 dut_port=dut_port,
                 global_pause=False,
                 pause_prio_list=pause_prio_list,
                 test_prio_list=test_prio_list,
                 bg_prio_list=bg_prio_list,
                 prio_dscp_map=prio_dscp_map,
                 test_traffic_pause=True,
                 snappi_extra_params=snappi_extra_params)