Ref : https://github.com/python/cpython/pull/25174

https://github.com/localstack/localstack/blob/5a5edcd9d9ccbd6a56f23d71e3a1131b8c814996/localstack/utils/common.py#L324
import io
import os
import re
import sys
import glob
import json
import uuid
import time
import base64
import socket
import hashlib
import decimal
import inspect
import logging
import tarfile
import zipfile
import binascii
import calendar
import tempfile
import functools
import threading
import subprocess
import six
import shutil
import requests
import dns.resolver
import platform