def ignore_underscore(key):
    "Wraps a `key` (that maps an object to string) to lower case and remove underscores."

    def _inner(x):
        return key(x).lower().replace("_", "")

    return _inner
Wraps a `key` (that maps an object to string) to lower case and remove underscores.
promptist/diffusers/utils/custom_init_isort.py