def METHOD_NAME(filter_str, creds=None):
    """Return all projects based on the filter.
    Args:
        filter_str: str, filter str, for example: 'label.env:test'.
        creds: obj, service_account.Credentials objects.
    Yields:
        Project, object.
    """
    projects = _paginate_projects(filter_str, creds)
    for project in projects:
        yield project