code: def _guess_extract_method(fname):
    
    for method, extensions in _EXTRACTION_METHOD_TO_EXTS:
      for ext in extensions:
        if fname.endswith(ext):
          return method
    return ExtractMethod.NO_EXTRACT
docs: Guess extraction method, given file name (or path).