CLIP THE BIAS: HOW USEFUL IS BALANCING DATA IN MULTIMODAL LEARNING?
import importlib.util
def import_source(module_name):
module_file_path = module_name.file
module_name = module_name.name
module_spec = importlib.util.spec_from_file_location(module_name ,module_file_path)
module = importlib.util.module_from_spec(module_spec)
module_spec.loader.exec_module(module)
print(dir(module))
msg = "The {module_name} module has the following methods:{methods}"
print(msg.format(module_name = module_name ,methods = dir(module)))
if name == “main”:
import logging
import_source(logging)1234567891011121314151617