def METHOD_NAME(args):
    # Chrome's extension IDs are in hexadecimal but using a-p, referred
    # internally as "mpdecimal". See https://stackoverflow.com/a/2050916
    if (len(args.id) != 32
            or any(ord(c) not in range(97, 113) for c in args.id)):
        raise RuntimeError("Not valid extension ID: %s" % args.id)
    try:
        from gi.repository import GLib, Gio  # noqa: F401
    except ImportError:
        raise RuntimeError("Required dependency `python3-gobject' not"
                           " found")
    try:
        import pydbus  # noqa: F401
    except ImportError:
        raise RuntimeError("Required dependency `python3-pydbus' not"
                           " found")
    install_host(args.id, args.install_dir)