def METHOD_NAME(fuzzer_name):
  """Extract tags (are used to filter samples) from the given fuzzer name."""
  tags = []
  fuzzer_name = fuzzer_name.lower()
  # All subtitle samples are in 'sub' directory, need to add 'sub' tag manually.
  if 'subtitle' in fuzzer_name:
    tags.append('sub')
  m = CODEC_NAME_REGEXP.search(fuzzer_name)
  if m:
    codec_name = m.group(1)
    # Some names are complex, need to split them and filter common strings.
    codec_name_parts = codec_name.split('_')
    for codec in codec_name_parts:
      # Remove common strings from codec names like 'mpeg1video' or 'msvideo1'.
      codec = codec.split('video')[0]
      codec = codec.split('audio')[0]
      codec = codec.split('subtitle')[0]
      codec = codec.split('text')[0]
      if codec:
        # Some codec names have trailing characters: 'VP6F','FLV1', 'JPEGLS'.
        # Use only first 3 characters for long enough codec names.
        if len(codec) > 3:
          tags.append(codec[:3])
        else:
          tags.append(codec)
  return tags