code: def tags_to_versions(tags, config=None):
      
      result = []
      for tag in tags:
          tag = tag_to_version(tag, config=config)
          if tag:
              result.append(tag)
      return result
docs: take tags that might be prefixed with a keyword and return only the version part
      :param tags: an iterable of tags
      :param config: optional configuration object