def import_cbor2():
    import cbor2
    import cbor2.types
    import cbor2.encoder
    import cbor2.decoder

    class Module(object):
        pass
    py_cbor2 = Module()
    for source in (cbor2.types, cbor2.encoder, cbor2.decoder):
        for name in dir(source):
            setattr(py_cbor2, name, getattr(source, name))
    return (cbor2, py_cbor2)
def import_cbor2():
    import cbor2
    import cbor2.types
    import cbor2.encoder
    import cbor2.decoder

    class Module(object):
        pass
    py_cbor2 = Module()
    for source in (cbor2.types, cbor2.encoder, cbor2.decoder):
        for name in dir(source):
            setattr(py_cbor2, name, getattr(source, name))
    return (cbor2, py_cbor2)