code: def __getitem__(self, key):
      assert self.is_internet_access_allowed is not None
      if key not in self or not super().__getitem__(key):
          if self.is_internet_access_allowed:
              pytest.skip("Missing geocoder credential: %s" % (key,))
          else:
              # Generate some dummy token. We won't perform a networking
              # request anyways.
              return "dummy"
      return super().__getitem__(key)
  
file_path: geopy/test/geocoders/util.py
imports: import contextlib
  import json
  import os
  from abc import ABC, abstractmethod
  from unittest.mock import ANY, patch
  import pytest
  from geopy import exc
  from geopy.adapters import BaseAsyncAdapter
  from geopy.location import Location
label_desc: Use image node_id 2 for calling the SkipIfMissingEnv obj's underlying member method code with example usage: obj.__getitem__(key) and returns: super, str