code: def test_bing_batch_forward():
      """Data subnitted would be the following:
      Bing Spatial Data Services, 2.0
      Id,GeocodeRequest/Query,GeocodeResponse/Point/Latitude,GeocodeResponse/Point/Longitude
      0,"Denver,CO",,
      1,"Boulder,CO",,
      """
      url_submission = "http://spatial.virtualearth.net/REST/v1/Dataflows/Geocode?input=csv&key=test"
      url_check = "http://spatial.virtualearth.net/REST/v1/Dataflows/Geocode/3bf1b729dddd498e9df45515cdb36130"
      url_result = "http://spatial.virtualearth.net/REST/v1/Dataflows/Geocode/3bf1b729dddd498e9df45515cdb36130/output/succeeded"
      submission_file = "tests/results/bing_batch_submission.json"
      confirmation_file = "tests/results/bing_batch_confirmation.json"
      data_file = "tests/results/bing_batch.csv"
      with requests_mock.Mocker() as mocker, open(
          submission_file, "rb"
      ) as submission_result, open(
          confirmation_file, "rb"
      ) as confirmation_result, open(
          data_file, "rb"
      ) as batch_result:
          mocker.post(
              url_submission, text=str(submission_result.read(), "utf8")
          )
          mocker.get(
              url_check, text=str(confirmation_result.read(), "utf8")
          )
          mocker.get(url_result, text=str(batch_result.read(), "utf8"))
          g = geocoder.bing(
              locations_forward, key="test", method="batch"
          )
          assert g.ok
          assert len(g) == 2
          expected_results = [
              [39.7400093078613, -104.99201965332],
              [40.015739440918, -105.279243469238],
          ]
          assert [result.latlng for result in g] == expected_results
  
file_path: geocoder/tests/test_bing.py
imports: from builtins import str
  import requests_mock
  import geocoder
label_desc: Use image node_id 4 for calling a global function with example usage: test_bing_batch_forward() without return types