code: def test_locationiq():
      url = "https://locationiq.org/v1/search.php?q=Ottawa%2C+Ontario&format=json&key=TEST_KEY"
      data_file = "tests/results/locationiq.json"
      with requests_mock.Mocker() as mocker, open(data_file, "r") as ip:
          mocker.get(url, text=ip.read())
          g = geocoder.locationiq(location, key="TEST_KEY")
          assert g.ok
          assert g[0].lat == ottawa[0]
          assert g[0].lng == ottawa[1]
  
imports: import json
  import geocoder
  import requests_mock
label_desc: Use image node_id 1 for calling a global function with example usage: test_locationiq() without return types