def find_prefixed_labels(labels, prefix):
  """Util for filtering and cleaning labels that start with a given prefix.

  Given a list of labels, find only the specific labels with the given prefix.

  Args:
    prefix: String expected to be prefix of relevant labels
    labels: List of string labels

  Return:
    Filtered labels (i.e. all labels starting with prefix)
  """
  changelog_labels = []
  for l in labels:
    l = l.strip()
    if l.startswith(prefix) and len(l) > len(prefix):
      changelog_labels.append(l)
  return changelog_labels