def get_latest_versions_by_environment_api_key(
        self, environment_api_key: str
    ) -> RawQuerySet:  # type: ignore[type-arg]
        """
        Get the latest EnvironmentFeatureVersion objects for a given environment.
        """
        return self._get_latest_versions(environment_api_key=environment_api_key)

        Get the latest EnvironmentFeatureVersion objects for a given environment.
        
api/features/versioning/managers.py