<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resources(self, lang, slug):
 """Generate a list of Resources in the Project. Yields dicts from the Tx API, with keys including the slug, name, i18n_type, source_language_code, and category. """


        resource = resources.Resource.get(
            project_slug=self.get_project_slug(lang),
            slug=slug,
        )

        return resource