def METHOD_NAME(reference, hide_doc_string=False):
    """
    Return the source code of the given reference path to a function.
    Parameters
    ----------
    reference : str
        Dot path of desired function.
    hide_doc_string : bool
        Option to hide the docstring.
    Returns
    -------
    IPython.display.Code
        Source code of the given class or function.
    """
    obj = inspect.getsource(_get_object_from_reference(reference))
    if hide_doc_string:
        obj = obj.split('"""')
        del obj[1]
        obj = ''.join(obj)
    if ipy:
        return Code(obj, language='python')
    else:
        issue_warning("IPython is not installed. Run `pip install openmdao[notebooks]` or "
                      "`pip install openmdao[docs]` to upgrade.")