code: def test_request_4(self):
      request = RequestDelegate(
          {
              "body": {
                  "size": 11,
                  "query": {
                      "function_score": {
                          "query": {
                              "bool": {
                                  "should": [
                                      {
                                          "match": {
                                              "text": {
                                                  "query": "query one",
                                                  "operator": "and",
                                              }
                                          }
                                      },
                                      {
                                          "match": {
                                              "text": {
                                                  "query": "query two",
                                                  "operator": "or",
                                              }
                                          }
                                      },
                                  ]
                              }
                          },
                          "script_score": {
                              "script": {
                                  "source": '1 + ((5 - doc["priority"].value) / 10.0) + ((doc["branch"].value == "All") ? 0.5 : 0)'
                              }
                          },
                      }
                  },
              }
          },
          query_path="body.query.function_score.query.bool.should.[*].match.text.query",
      )
  
      self.assertEqual("query one. query two", request.query)
  
file_path: nboost/tests/unit/test_delegates.py
imports: import unittest
  from nboost.delegates import RequestDelegate, ResponseDelegate
label_desc: Use image node_id 4 for calling the TestDelegates obj's underlying member method code with example usage: obj.test_request_4() without return types