code: def test_google():
      urls = [
          # when testing locally
          "https://maps.googleapis.com/maps/api/geocode/json?language=&address=Ottawa,%20Ontario&bounds=&components=&region=&key=mock",
          # when building in Travis (secured connection implies ordered parameters)
          "https://maps.googleapis.com/maps/api/geocode/json?client=[secure]&latlng=45.4215296%2C+-75.697193&sensor=false&signature=iXbq6odmrYN0XgcfB5EPcgEvR-I%3D",
      ]
      data_file = "tests/results/google.json"
      with requests_mock.Mocker() as mocker, open(
          data_file, "r"
      ) as input:
          for url in urls:
              mocker.get(url, text=input.read())
          g = geocoder.google(location, client=None, key="mock")
          assert g.ok
          assert g.accuracy == "APPROXIMATE"
          assert str(g.city) == city
          osm_count, fields_count = g.debug()[0]
          assert osm_count >= 3
          assert fields_count >= 15
  
imports: import geocoder
  import requests_mock
label_desc: Use image node_id 1 for calling a global function with example usage: test_google() without return types