code: def bad_alias(aliases: list) -> bool:
      """Returns true if an entity has a "bad" alias and false otherwise. An alias is bad
      if it corresponds to a category, stub, disambiguation, stub, template, or list
      page. We just check for these keywords in the title.
  
      Args:
          aliases (list): list of aliases for an entity.
  
      Returns:
          bool: whether or not the entity has a bad alias.
      """
      if len(aliases) == 0:
          return True
      for a in aliases:
          if "category" in a.lower():
              return True
          if "stub" in a.lower():
              return True
          if "disambiguation" in a.lower():
              return True
          if "template" in a.lower():
              return True
          if "list of" in a.lower():
              return True
      return False
  
file_path: H2O/h2o_hf/helm/scripts/fact_completion/filter_triples.py
imports: import argparse
  from collections import defaultdict
  import json
  from tqdm import tqdm
  from pathlib import Path
  from utils import get_batch_files, jsonl_generator, save_jsonl
label_desc: Use image node_id 2 for calling a global function with example usage: bad_alias(aliases) and returns: False, True, True, True, True, True, True