code: def build_resource(self, data):
          
          if self._res_class is None:
              self._res_class = self._details.session.get_resource(
                  self._details.service_name,
                  self._details.resource
              )
  
          final_data = {}
  
          # Lightly post-process the data, to look more Pythonic.
          for key, value in data.items():
              final_data[to_snake_case(key)] = value
  
          return self._res_class(connection=self._connection, **final_data)
docs: Given some data, builds the correct/matching ``Resource`` subclass
          for the ``Collection``. Useful in things like ``create`` & ``each``.
  
          :param result: The data for an instance handed back from the API.
          :type result: dict
  
          :returns: A ``Resource`` subclass