def METHOD_NAME(creds, duthost,
                                 ptfhost, request,
                                 create_sai_test_interface_param):
    """
    Check the sai test environment.
    In this function, it will make a liveness check test
    to check if the sai test container is ready for test.
    This check has three stage:
    1. If the liveness check test failed,
    then it will make a environment reset.
    2. If the envvironment reset failed with attempts,
    then the test environment will be marked as failed.
    3. If environment marked as failed,
    this check will be failed in following round of check.
    Args:
        creds (dict): Credentials used to access the docker registry.
        duthost (SonicHost): The target device.
        dut_ip: dut ip address.
        ptfhost (AnsibleHost): The PTF server.
        test_case: Test case name used to make test.
        test_interface_params: Testbed switch interface
        request: Pytest request.
    """
    global IS_TEST_ENV_FAILED
    if IS_TEST_ENV_FAILED:
        logger.info("Test env check is failed in previous check.\
             Fails this check directly.")
        raise Exception("SAI Test env error.")
    check_commun_test_env_with_retry(
        creds, duthost, ptfhost, request, create_sai_test_interface_param)