code: def test_mapquest_batch():
      url = "http://www.mapquestapi.com/geocoding/v1/batch"
      data_file = "tests/results/mapquest_batch.json"
      with requests_mock.Mocker() as mocker, open(
          data_file, "r"
      ) as input:
          mocker.get(url, text=input.read())
          g = geocoder.mapquest(locations, method="batch", timeout=10)
          assert g.ok
          expected_results = [
              [39.738453, -104.984853],
              [40.015831, -105.27927],
          ]
  
          assert [result.latlng for result in g] == expected_results
  
imports: import requests_mock
  import geocoder
label_desc: Use image node_id 4 for calling a global function with example usage: test_mapquest_batch() without return types