def import_module(name, package=None):      # NOQA
        if name.startswith('.'):
            if not package:
                raise TypeError("relative imports require the 'package' "
                                "argument")
            level = 0
            for character in name:
                if character != '.':
                    break
                level += 1
            name = _resolve_name(name[level:], package, level)
        __import__(name)
        return sys.modules[name]


# taken from werkzeug
Deletes the file from disk if it is the only File in this assetstore
dataset/ETHPy150Open tarekziade/boom/boom/util.py/import_module--crossover with--dataset/ETHPy150Open girder/girder/girder/utility/filesystem_assetstore_adapter.py/FilesystemAssetstoreAdapter.deleteFile