text: # List of all modules (standard library) available in Python 2.
  STDLIB_PY2 = (
      "AL",
      "BaseHTTPServer",
      "Bastion",
      "CGIHTTPServer",
      "Carbon",
      "ColorPicker",
      "ConfigParser",
      "Cookie",
      "DEVICE",
      "DocXMLRPCServer",
      "EasyDialogs",
      "FL",
      "FrameWork",
      "GL",
      "HTMLParser",
      "MacOS",
      "MimeWriter",
      "MiniAEFrame",
      "Queue",
      "SUNAUDIODEV",
      "ScrolledText",
      "SimpleHTTPServer",
      "SimpleXMLRPCServer",
      "SocketServer",
      "StringIO",
      "Tix",
      "Tkinter",
      "UserDict",
      "UserList",
      "UserString",
      "__builtin__",
      "__future__",
      "__main__",
      "_winreg",
      "abc",
      "aepack",
      "aetools",
      "aetypes",
      "aifc",
      "al",
      "anydbm",
      "argparse",
      "array",
      "ast",
      "asynchat",
      "asyncore",
      "atexit",
      "audioop",
      "autoGIL",
      "base64",
      "bdb",
      "binascii",
      "binhex",
      "bisect",
      "bsddb",
      "bz2",
      "cPickle",
      "cProfile",
      "cStringIO",
      "calendar",
      "cd",
      "cgi",
      "cgitb",
      "chunk",
      "cmath",
      "cmd",
      "code",
      "codecs",
      "codeop",
      "collections",
      "colorsys",
      "commands",
      "compileall",
      "compiler",
      "contextlib",
      "cookielib",
      "copy",
      "copy_reg",
      "crypt",
      "csv",
      "ctypes",
      "curses",
      "datetime",
      "dbhash",
      "dbm",
      "decimal",
      "difflib",
      "dircache",
      "dis",
      "distutils",
      "dl",
      "doctest",
      "dumbdbm",
      "dummy_thread",
      "dummy_threading",
      "email",
      "ensurepip",
      "errno",
      "fcntl",
      "filecmp",
      "fileinput",
      "findertools",
      "fl",
      "flp",
      "fm",
      "fnmatch",
      "formatter",
      "fpectl",
      "fpformat",
      "fractions",
      "ftplib",
      "functools",
      "future_builtins",
      "gc",
      "gdbm",
      "gensuitemodule",
      "getopt",
      "getpass",
      "gettext",
      "gl",
      "glob",
      "grp",
      "gzip",
      "hashlib",
      "heapq",
      "hmac",
      "hotshot",
      "htmlentitydefs",
      "htmllib",
      "httplib",
      "ic",
      "imageop",
      "imaplib",
      "imgfile",
      "imghdr",
      "imp",
      "importlib",
      "imputil",
      "inspect",
      "io",
      "itertools",
      "jpeg",
      "json",
      "keyword",
      "linecache",
      "locale",
      "logging",
      "macostools",
      "macpath",
      "mailbox",
      "mailcap",
      "marshal",
      "math",
      "md5",
      "mhlib",
      "mimetools",
      "mimetypes",
      "mimify",
      "mmap",
      "modulefinder",
      "msilib",
      "msvcrt",
      "multifile",
      "multiprocessing",
      "mutex",
      "netrc",
      "new",
      "nis",
      "nntplib",
      "ntpath",
      "numbers",
      "operator",
      "optparse",
      "os",
      "os2emxpath",
      "ossaudiodev",
      "parser",
      "pdb",
      "pickle",
      "pickletools",
      "pipes",
      "pkgutil",
      "platform",
      "plistlib",
      "popen2",
      "poplib",
      "posix",
      "posixfile",
      "posixpath",
      "pprint",
      "profile",
      "pstats",
      "pty",
      "pwd",
      "py_compile",
      "pyclbr",
      "pydoc",
      "quopri",
      "random",
      "re",
      "readline",
      "repr",
      "resource",
      "rexec",
      "rfc822",
      "rlcompleter",
      "robotparser",
      "runpy",
      "sched",
      "select",
      "sets",
      "sgmllib",
      "sha",
      "shelve",
      "shlex",
      "shutil",
      "signal",
      "site",
      "smtpd",
      "smtplib",
      "sndhdr",
      "socket",
      "spwd",
      "sqlite3",
      "ssl",
      "stat",
      "statvfs",
      "string",
      "stringprep",
      "struct",
      "subprocess",
      "sunau",
      "sunaudiodev",
      "symbol",
      "symtable",
      "sys",
      "sysconfig",
      "syslog",
      "tabnanny",
      "tarfile",
      "telnetlib",
      "tempfile",
      "termios",
      "test",
      "textwrap",
      "thread",
      "threading",
      "time",
      "timeit",
      "token",
      "tokenize",
      "trace",
      "traceback",
      "ttk",
      "tty",
      "turtle",
      "types",
      "unicodedata",
      "unittest",
      "urllib",
      "urllib2",
      "urlparse",
      "user",
      "uu",
      "uuid",
      "warnings",
      "wave",
      "weakref",
      "webbrowser",
      "whichdb",
      "winsound",
      "wsgiref",
      "xdrlib",
      "xml",
      "xmlrpclib",
      "zipfile",
      "zipimport",
      "zlib",
  )
  
  # List of all modules (standard library) available in Python 3.
  STDLIB_PY3 = (
      "__future__",
      "__main__",
      "_dummy_thread",
      "_thread",
      "abc",
      "aifc",
      "argparse",
      "array",
      "ast",
      "asynchat",
      "asyncio",
      "asyncore",
      "atexit",
      "audioop",
      "base64",
      "bdb",
      "binascii",
      "binhex",
      "bisect",
      "builtins",
      "bz2",
      "cProfile",
      "calendar",
      "cgi",
      "cgitb",
      "chunk",
      "cmath",
      "cmd",
      "code",
      "codecs",
      "codeop",
      "collection",
      "collections",
      "colorsys",
      "compileall",
      "concurrent",
      "configparser",
      "contextlib",
      "contextvars",
      "copy",
      "copyreg",
      "crypt",
      "csv",
      "ctypes",
      "curses",
      "dataclasses",
      "datetime",
      "dbm",
      "decimal",
      "difflib",
      "dis",
      "distutils",
      "doctest",
      "dummy_threading",
      "email",
      "ensurepip",
      "enum",
      "errno",
      "faulthandler",
      "fcntl",
      "filecmp",
      "fileinput",
      "fnmatch",
      "formatter",
      "fpectl",
      "fractions",
      "ftplib",
      "functools",
      "gc",
      "getopt",
      "getpass",
      "gettext",
      "glob",
      "grp",
      "gzip",
      "hashlib",
      "heapq",
      "hmac",
      "html",
      "http",
      "imaplib",
      "imghdr",
      "imp",
      "importlib",
      "inspect",
      "io",
      "ipaddress",
      "itertools",
      "json",
      "keyword",
      "lib2to3",
      "linecache",
      "locale",
      "logging",
      "lzma",
      "macpath",
      "mailbox",
      "mailcap",
      "marshal",
      "math",
      "mimetypes",
      "mmap",
      "modulefinder",
      "msilib",
      "msvcrt",
      "multiprocessing",
      "netrc",
      "nis",
      "nntplib",
      "ntpath",
      "numbers",
      "operator",
      "optparse",
      "os",
      "ossaudiodev",
      "parser",
      "pathlib",
      "pdb",
      "pickle",
      "pickletools",
      "pipes",
      "pkgutil",
      "platform",
      "plistlib",
      "poplib",
      "posix",
      "posixpath",
      "pprint",
      "profile",
      "pstats",
      "pty",
      "pwd",
      "py_compile",
      "pyclbr",
      "pydoc",
      "queue",
      "quopri",
      "random",
      "re",
      "readline",
      "reprlib",
      "resource",
      "rlcompleter",
      "runpy",
      "sched",
      "secrets",
      "select",
      "selectors",
      "shelve",
      "shlex",
      "shutil",
      "signal",
      "site",
      "smtpd",
      "smtplib",
      "sndhdr",
      "socket",
      "socketserver",
      "spwd",
      "sqlite3",
      "ssl",
      "stat",
      "statistics",
      "string",
      "stringprep",
      "struct",
      "subprocess",
      "sunau",
      "symbol",
      "symtable",
      "sys",
      "sysconfig",
      "syslog",
      "tabnanny",
      "tarfile",
      "telnetlib",
      "tempfile",
      "termios",
      "test",
      "textwrap",
      "threading",
      "time",
      "timeit",
      "tkinter",
      "token",
      "tokenize",
      "trace",
      "traceback",
      "tracemalloc",
      "tty",
      "turtle",
      "turtledemo",
      "types",
      "typing",
      "unicodedata",
      "unittest",
      "urllib",
      "uu",
      "uuid",
      "venv",
      "warnings",
      "wave",
      "weakref",
      "webbrowser",
      "winreg",
      "winsound",
      "wsgiref",
      "xdrlib",
      "xml",
      "xmlrpc",
      "zipapp",
      "zipfile",
      "zipimport",
      "zlib",
  )
  
  # Mapping for known 3rd party projects, which provide more than one module
  # or the name of the module is different than the project name itself.
  KNOWN_3RD_PARTIES = {
      # NOTE: The allure-pytest package does not provide allure module directly
      #       but it depends on allure-python-commons which provides it. User
      #       will most likely specify allure-pytest as a dependency, though.
      "allure-pytest": ["allure"],
      "attrs": ["attr"],
      "awesome_slugify": ["slugify"],
      "beautifulsoup4": ["bs4"],
      "cx_oracle": ["cx_Oracle"],
      "databricks-connect": ["pyspark"],
      "django-ajax-selects": ["ajax_select"],
      "django-haystack": ["haystack"],
      "enum34": ["enum"],
      "factory_boy": ["factory"],
      "google_api_python_client": ["apiclient", "googleapiclient"],
      "grpcio": ["grpc"],
      "grpcio-channelz": ["grpc_channelz"],
      "grpcio-gcp": ["grpc_gcp"],
      "grpcio-health-checking": ["grpc_health"],
      "grpcio-opentracing": ["grpc_opentracing"],
      "grpcio-reflection": ["grpc_reflection"],
      "grpcio-status": ["grpc_status"],
      "grpcio-testing": ["grpc_testing"],
      "grpcio-tools": ["grpc_tools"],
      "ipython": ["IPython"],
      "mysql_python": ["MySQLdb"],
      "mysqlclient": ["_mysql", "MySQLdb"],
      "pillow": ["PIL"],
      "protobuf": ["google.protobuf"],
      "py_lru_cache": ["lru"],
      "pygithub": ["github"],
      "pygobject": ["gi", "pygtkcompat"],
      "pyhamcrest": ["hamcrest"],
      "pyicu": ["icu"],
      "pyjwt": ["jwt"],
      "pymongo": ["bson", "gridfs", "pymongo"],
      "pyopenssl": ["OpenSSL"],
      "python-dateutil": ["dateutil"],
      "pyyaml": ["yaml"],
      "scikit-learn": ["sklearn"],
      "setuptools": ["pkg_resources", "setuptools"],
      "sorl-thumbnail": ["sorl"],
      "splunk_sdk": ["splunklib"],
      "tensorboardx": ["tensorboardX"],
      "xlwt_future": ["xlwt"],
  }
  