

def GetTableClass(class_name):
    if (class_name in TABLE_ALIAS_MAP):
        qualified_name = TABLE_ALIAS_MAP[class_name]
    else:
        package_name = re.sub('(.)([A-Z])', '\\1_\\2', class_name).lower()
        qualified_name = ('viewfinder.backend.db.%s.%s' % (package_name, class_name))
    if (qualified_name is None):
        return None
    return import_object(qualified_name)

dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/db_import.py GetTableClass/original