def METHOD_NAME(self):
    """Attach a single UE + add dedicated bearer + send erab setup rsp
    message out of order for the dedicated bearer"""
    num_ue = 1
    self._s1ap_wrapper.configUEDevice(num_ue)
    req = self._s1ap_wrapper.ue_req
    ue_id = req.ue_id
    # UL Flow description #1
    ulFlow1 = {
        "ipv4_dst": "192.168.129.42",  # IPv4 destination address
        "tcp_dst_port": 5002,  # TCP dest port
        "ip_proto": FlowMatch.IPPROTO_TCP,  # Protocol Type
        "direction": FlowMatch.UPLINK,  # Direction
    }
    # UL Flow description #2
    ulFlow2 = {
        "ipv4_dst": "192.168.129.42",  # IPv4 destination address
        "tcp_dst_port": 5001,  # TCP dest port
        "ip_proto": FlowMatch.IPPROTO_TCP,  # Protocol Type
        "direction": FlowMatch.UPLINK,  # Direction
    }
    # UL Flow description #3
    ulFlow3 = {
        "ipv4_dst": "192.168.129.64",  # IPv4 destination address
        "tcp_dst_port": 5003,  # TCP dest port
        "ip_proto": FlowMatch.IPPROTO_TCP,  # Protocol Type
        "direction": FlowMatch.UPLINK,  # Direction
    }
    # UL Flow description #4
    ulFlow4 = {
        "ipv4_dst": "192.168.129.42",  # IPv4 destination address
        "tcp_dst_port": 5004,  # TCP dest port
        "ip_proto": FlowMatch.IPPROTO_TCP,  # Protocol Type
        "direction": FlowMatch.UPLINK,  # Direction
    }
    # DL Flow description #1
    dlFlow1 = {
        "ipv4_src": "192.168.129.42",  # IPv4 source address
        "tcp_src_port": 5001,  # TCP source port
        "ip_proto": FlowMatch.IPPROTO_TCP,  # Protocol Type
        "direction": FlowMatch.DOWNLINK,  # Direction
    }
    # DL Flow description #2
    dlFlow2 = {
        "ipv4_src": "192.168.129.64",  # IPv4 source address
        "tcp_src_port": 5002,  # TCP source port
        "ip_proto": FlowMatch.IPPROTO_TCP,  # Protocol Type
        "direction": FlowMatch.DOWNLINK,  # Direction
    }
    # DL Flow description #3
    dlFlow3 = {
        "ipv4_src": "192.168.129.64",  # IPv4 source address
        "tcp_src_port": 5003,  # TCP source port
        "ip_proto": FlowMatch.IPPROTO_TCP,  # Protocol Type
        "direction": FlowMatch.DOWNLINK,  # Direction
    }
    # DL Flow description #4
    dlFlow4 = {
        "ipv4_src": "192.168.129.42",  # IPv4 source address
        "tcp_src_port": 5004,  # TCP source port
        "ip_proto": FlowMatch.IPPROTO_TCP,  # Protocol Type
        "direction": FlowMatch.DOWNLINK,  # Direction
    }
    # Flow list to be configured
    flow_list = [
        ulFlow1,
        ulFlow2,
        ulFlow3,
        ulFlow4,
        dlFlow1,
        dlFlow2,
        dlFlow3,
        dlFlow4,
    ]
    # QoS
    qos = {
        "qci": 1,  # qci value [1 to 9]
        "priority": 15,  # Range [0-255]
        "max_req_bw_ul": 10000000,  # MAX bw Uplink
        "max_req_bw_dl": 15000000,  # MAX bw Downlink
        "gbr_ul": 1000000,  # GBR Uplink
        "gbr_dl": 2000000,  # GBR Downlink
        "arp_prio": 15,  # ARP priority
        "pre_cap": 1,  # pre-emption capability
        "pre_vul": 1,  # pre-emption vulnerability
    }
    policy_id = "internet"
    print(
        "************************* Running End to End attach for UE id ",
        ue_id,
    )
    # Attach
    attach = self._s1ap_wrapper.s1_util.attach(
        ue_id,
        s1ap_types.tfwCmd.UE_END_TO_END_ATTACH_REQUEST,
        s1ap_types.tfwCmd.UE_ATTACH_ACCEPT_IND,
        s1ap_types.ueAttachAccept_t,
    )
    # Wait on EMM Information from MME
    self._s1ap_wrapper._s1_util.receive_emm_info()
    addr = attach.esmInfo.pAddr.addrInfo
    default_ip = ipaddress.ip_address(bytes(addr[:4]))
    # Send indication to delay sending of erab setup rsp
    delay_erab_setup_resp = s1ap_types.UeDelayErabSetupRsp()
    delay_erab_setup_resp.ue_Id = ue_id
    delay_erab_setup_resp.flag = 1
    # Timer value in secs to delay erab setup rsp
    delay_erab_setup_resp.tmrVal = 6000
    self._s1ap_wrapper._s1_util.issue_cmd(
        s1ap_types.tfwCmd.UE_SET_DELAY_ERAB_SETUP_RSP,
        delay_erab_setup_resp,
    )
    print(
        "Sent UE_SET_DELAY_ERAB_SETUP_RSP with delay value of %d secs"
        % (delay_erab_setup_resp.tmrVal),
    )
    print("Sleeping for 5 seconds")
    time.sleep(5)
    print(
        "********************** Sending RAR for IMSI",
        "".join([str(i) for i in req.imsi]),
    )
    self._sessionManager_util.send_ReAuthRequest(
        "IMSI" + "".join([str(i) for i in req.imsi]),
        policy_id,
        flow_list,
        qos,
    )
    # Receive Activate dedicated bearer request
    response = self._s1ap_wrapper.s1_util.get_response()
    assert response.msg_type == s1ap_types.tfwCmd.UE_ACT_DED_BER_REQ.value
    act_ded_ber_ctxt_req = response.cast(s1ap_types.UeActDedBearCtxtReq_t)
    print("Sleeping for 5 seconds")
    time.sleep(5)
    # Send Activate dedicated bearer accept
    self._s1ap_wrapper.sendActDedicatedBearerAccept(
        ue_id, act_ded_ber_ctxt_req.bearerId,
    )
    # Delay to ensure erab setup rsp is sent out of order
    print("Sleeping for 10 seconds")
    time.sleep(10)
    dl_flow_rules = {
        default_ip: [flow_list],
    }
    # ipv4 default bearer + dedicated bearer
    num_ul_flows = 2
    # Verify if flow rules are created
    self._s1ap_wrapper.s1_util.verify_flow_rules(
        num_ul_flows, dl_flow_rules,
    )
    print(
        "************************* Running UE detach (switch-off) for ",
        "UE id ",
        ue_id,
    )
    # Now detach the UE
    self._s1ap_wrapper.s1_util.detach(
        ue_id, s1ap_types.ueDetachType_t.UE_SWITCHOFF_DETACH.value, False,
    )