def METHOD_NAME(self, packages: Dict[str, Any], packages_specified_path: str):
    """Render the given packages dict"""
    packages = packages or {}  # Sometimes this is none in tests
    package_renderer = self.get_package_renderer()
    if packages_specified_path == DEPENDENCIES_FILE_NAME:
        # We don't want to render the "packages" dictionary that came from dependencies.yml
        return packages
    else:
        return package_renderer.render_data(packages)