code: def resolve_resource_type(self, resource_dict):
          
          if not self.can_resolve(resource_dict):
              raise TypeError("Resource dict has missing or invalid value for key Type. Event Type is: {}.".format(
                      resource_dict.get('Type')))
          if resource_dict['Type'] not in self.resource_types:
              raise TypeError("Invalid resource type {resource_type}".format(resource_type=resource_dict['Type']))
          return self.resource_types[resource_dict['Type']]
docs: Returns the Resource class corresponding to the 'Type' key in the given resource dict.
  
          :param dict resource_dict: the resource dict to resolve
          :returns: the resolved Resource class
          :rtype: class