def linkcode_resolve(domain, info):
    if domain != 'py':
        return None

    modname = info['module']
    fullname = info['fullname']

    submod = sys.modules.get(modname)
    if submod is None:
        return None

    obj = submod
    for part in fullname.split('.'):
        try:
            obj = getattr(obj, part)
        except:
            return None

    try:
        inspect.getsourcefile(obj)
    except:
        return None

    try:
        fn = inspect.getsourcefile(obj)
    except:
        fn = None
    if not fn:
        return None

    try:
        source, lineno = inspect.findsource(obj)
    except:
        lineno = None

    if lineno:
        linespec = "#L%d" % (lineno + 1)
    else:
        linespec = ""

    fn = relpath(fn, start=dirname(tensorprob.__file__))

    # Always link to master for now
    # TODO(ibab) Change this to the released version once we do releases
    return "http://github.com/tensorprob/tensorprob/blob/master/tensorprob/%s%s" % (
       fn, linespec)

    #if 'dev' in tensorprob.__version__:
    #    return "http://github.com/tensorprob/tensorprob/blob/master/tensorprob/%s%s" % (
    #       fn, linespec)
    #else:
    #    return "http://github.com/tensorprob/tensorprob/blob/v%s/tensorprob/%s%s" % (
    #       tensorprob.__version__, fn, linespec)
Combines the domain base href with the html source.
dataset/ETHPy150Open tensorprob/tensorprob/docs/source/conf.py/linkcode_resolve--crossover with--dataset/ETHPy150Open mdmintz/SeleniumBase/seleniumbase/core/log_helper.py/get_html_source_with_base_href