def METHOD_NAME(df_use, external):
    fig = qa_view.display_hist(df_use, "col2", "Data", 2, external)
    if external:
        assert fig.__class__.__name__ == "OpenBBFigure"
    else:
        assert fig.__class__.__name__ == "MagicMock"