def METHOD_NAME(display=True):
    """
    Adapted from answer 2 in
    https://stackoverflow.com/questions/40428931/package-for-listing-version-of-packages-used-in-a-jupyter-notebook
    """
    import pandas as pd
    import pkg_resources
    from IPython.display import display
    _package_name = "dynamo-release"
    _package = pkg_resources.working_set.by_key[_package_name]
    all_dependencies = [str(r).split(">")[0] for r in _package.requires()]  # retrieve deps from setup.py
    all_dependencies.sort(reverse=True)
    all_dependencies.insert(0, "dynamo-release")
    all_dependencies_list = []
    for m in pkg_resources.working_set:
        if m.project_name.lower() in all_dependencies:
            all_dependencies_list.append([m.project_name, m.version])
    df = pd.DataFrame(all_dependencies_list[::-1], columns=["package", "version"]).set_index("package").T
    if display:
        pd.options.display.max_columns = None
        display(df)
    else:
        return df