code: def get_address(self):
          
          resource_list = self.get_resource()
          try:
              return [resource['address'] for resource in resource_list]
          except (KeyError, TypeError):
              try:
                  if isinstance(resource_list, dict):
                      resource_list = [resource_list]
                  return [resource['Address'] for resource in resource_list]
              except (KeyError, TypeError) as exc:
                  print(exc)
docs: Retrieves addresses from the output JSON/XML response
  
          Returns:
              address (namedtuple): List of named tuples of addresses