code: def format_matches_extension(distribution, attribute):
      
  
      if attribute in distribution and "format" in distribution:
          if "/" in distribution['format']:
              possible_format_extensions = mimetypes.guess_all_extensions(
                  distribution['format'])
          else:
              possible_format_extensions = ['.' + distribution['format'].lower()]
  
          file_name = urlparse(distribution[attribute]).path
          extension = os.path.splitext(file_name)[-1].lower()
  
          if attribute == 'downloadURL' and not extension:
              return True
  
          # hay extensiones exceptuadas porque enmascaran otros formatos
          if extension.lower().replace(".", "") in EXTENSIONS_EXCEPTIONS:
              return True
  
          if extension not in possible_format_extensions:
              return False
  
      return True
docs: Chequea si una extensión podría corresponder a un formato dado.