def find_str_in_dict(
    term, class_mapping):
  """Finds all key, value in class_mapping s.t key is a substring of term."""
  all_matched_classes = []
  for k, v in class_mapping.items():
    if k in term.lower():
      all_matched_classes.append((v, k))
  return all_matched_classes