code: def geonames_response(request):
      url = "http://api.geonames.org/searchJSON?q=Ottawa%2C+Ontario&fuzzy=1.0&username=mock&maxRows=1"
      data_file = "tests/results/geonames.json"
      with requests_mock.Mocker() as mocker, open(
          data_file, "r"
      ) as input:
          mocker.get(url, text=input.read())
          result = geocoder.geonames(location, key="mock")
      return result
  
file_path: geocoder/tests/test_geonames.py
imports: import json
  import pytest
  import geocoder
  import requests_mock
label_desc: Use image node_id 1 for calling a global function with example usage: geonames_response(request) and returns: result