code: def rel_filtering_func(
      seed_rels: Set[str], filepath: str
  ) -> List[Dict[str, str]]:
      """Returns triples with relation in seed_rels
  
      Args:
          seed_rels (Set[str]): filtering set of relations.
          filepath (str): path to jsonl file with triple data
  
      Returns:
          List[Dict[str, str]]: list of filtered triples.
      """
      filtered = []
      for item in jsonl_generator(filepath):
          if item["property_id"] in seed_rels:
              filtered.append(item)
      return filtered
  
file_path: H2O/h2o_hf/helm/scripts/fact_completion/fetch_triples_and_aliases.py
imports: import argparse
  from tqdm import tqdm
  from typing import Set, List, Dict
  from pathlib import Path
  from utils import get_batch_files, jsonl_generator, load_seed_relations, save_jsonl
label_desc: Use image node_id 2 for calling a global function with example usage: rel_filtering_func(seed_rels, filepath) and returns: filtered