def METHOD_NAME(duthost, value, pg_lossless_profiles):
    """
    Ensures application of the JSON patch config update by verifying dynamic threshold value presence in DB
    Args:
        duthost: DUT host object
        value: expected value of dynamic threshold
        pg_lossless_profiles: all pg_lossless buffer profiles stored on the device
    """
    def _confirm_value_in_appl_db_and_asic_db():
        for pg_lossless_profile in pg_lossless_profiles:
            # Retrieve dynamic_th from APPL_DB
            dynamic_th_in_appl_db = duthost.shell("sonic-db-cli APPL_DB hget BUFFER_PROFILE_"
                                                  "TABLE:{} dynamic_th".format(pg_lossless_profile))["stdout"]
            if dynamic_th_in_appl_db != value:
                return False
        # Retrieve dynamic_th from ASIC_DB
        ingress_lossless_pool_oid = duthost.shell("sonic-db-cli COUNTERS_DB hget COUNTERS_BUFFER_POOL_NAME_MAP "
                                                  "ingress_lossless_pool")["stdout"]
        buffer_pool_keys = duthost.shell("redis-cli -n 1 KEYS ASIC_STATE:SAI_OBJECT_TYPE_BUFFER_PROFILE:"
                                         "oid*")["stdout_lines"]
        for buffer_pool in buffer_pool_keys:
            pool_oid = duthost.shell("sonic-db-cli ASIC_DB hget {} SAI_BUFFER_PROFILE_ATTR_"
                                     "POOL_ID".format(buffer_pool))["stdout"]
            if pool_oid == ingress_lossless_pool_oid:
                xoff_val = duthost.shell("sonic-db-cli ASIC_DB hget {} SAI_BUFFER_PROFILE_ATTR_"
                                         "XOFF_TH".format(buffer_pool))["stdout"]
                dynamic_th_in_asic_db = duthost.shell("sonic-db-cli ASIC_DB hget {} SAI_BUFFER_PROFILE_"
                                                      "ATTR_SHARED_DYNAMIC_TH".format(buffer_pool))["stdout"]
                # Dynamic threshold values are a mismatch for pg_lossless profiles
                if dynamic_th_in_asic_db != value and len(xoff_val) > 0:
                    return False
        return True
    pytest_assert(
        wait_until(READ_APPL_DB_TIMEOUT, READ_APPL_DB_INTERVAL, 0, _confirm_value_in_appl_db_and_asic_db),
        "ASIC_DB or APPL_DB does not properly reflect new dynamic threshold expected value: {}".format(value)
    )