def with_metaclass(meta, *bases):
    """Create a base class with a metaclass."""
    return meta("_NewBase", bases or (object,), {})


# Metaclass for singletons
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/with_metaclass/original