def create_analyzer(analyzer_path, file_path):
    """Imports analyzer class and creates analyzer object

    :param analyzer_path: Path to analyzer in format 'module.Class'.
    :returns: Instantiated analyzer object.
    """
    mod_name, class_name = analyzer_path.rsplit('.', 1)

    analyzer_module = import_module(mod_name)
    analyzer_class = getattr(analyzer_module, class_name)

    return analyzer_class(file_path)
Imports analyzer class and creates analyzer object

    :param analyzer_path: Path to analyzer in format 'module.Class'.
    :returns: Instantiated analyzer object.
    
lisa/analysis/top_level.py