parameters: (wheel_zip, name)
return_statement: return info_dir, metadata
docstring: Extract information from the provided wheel, ensuring it meets basic
      standards.
  
      Returns the name of the .dist-info directory and the parsed WHEEL metadata.
docstring_summary: Extract information from the provided wheel, ensuring it meets basic
      standards.
docstring_tokens: Extract information from the provided wheel ensuring it meets basic standards .
function: def parse_wheel(wheel_zip, name):
      # type: (ZipFile, str) -> Tuple[str, Message]
      """Extract information from the provided wheel, ensuring it meets basic
      standards.
  
      Returns the name of the .dist-info directory and the parsed WHEEL metadata.
      """
      try:
          info_dir = wheel_dist_info_dir(wheel_zip, name)
          metadata = wheel_metadata(wheel_zip, info_dir)
          version = wheel_version(metadata)
      except UnsupportedWheel as e:
          raise UnsupportedWheel(
              "{} has an invalid wheel, {}".format(name, str(e))
          )
  
      check_compatibility(version, name)
  
      return info_dir, metadata
function_tokens: def parse_wheel ( wheel_zip , name ) : # type: (ZipFile, str) -> Tuple[str, Message] try : info_dir = wheel_dist_info_dir ( wheel_zip , name ) metadata = wheel_metadata ( wheel_zip , info_dir ) version = wheel_version ( metadata ) except UnsupportedWheel as e : raise UnsupportedWheel ( "{} has an invalid wheel, {}" . format ( name , str ( e ) ) ) check_compatibility ( version , name ) return info_dir , metadata