code: def test_geonames_delegation(geonames_response):
      # next calls are delegated to result
      assert geonames_response.geonames_id == 6094817
      assert geonames_response.lat == "45.41117"
      assert geonames_response.lng == "-75.69812"
      assert geonames_response.address == "Ottawa"
      assert geonames_response.country == "Canada"
      assert geonames_response.country_code == "CA"
      assert geonames_response.state == "Ontario"
      assert geonames_response.state_code == "08"
      assert (
          geonames_response.description
          == "capital of a political entity"
      )
      assert geonames_response.class_description == "city, village,..."
      assert geonames_response.feature_class == "P"
      assert geonames_response.code == "PPLC"
      assert geonames_response.population == 812129
  
file_path: geocoder/tests/test_geonames.py
imports: import json
  import pytest
  import geocoder
  import requests_mock
label_desc: Use image node_id 7 for calling a global function with example usage: test_geonames_delegation(geonames_response) without return types