def linkcode_resolve(domain, info):
if domain != '<STR_LIT>':<EOL><INDENT>return None<EOL><DEDENT>modname = info['<STR_LIT>']<EOL>fullname = info['<STR_LIT>']<EOL>submod = sys.modules.get(modname)<EOL>if submod is None:<EOL><INDENT>return None<EOL><DEDENT>obj = submod<EOL>for part in fullname.split('<STR_LIT:.>'):<EOL><INDENT>try:<EOL><INDENT>obj = getattr(obj, part)<EOL><DEDENT>except AttributeError:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>try:<EOL><INDENT>if sys.version_info >= (<NUM_LIT:3>, <NUM_LIT:5>):<EOL><INDENT>fn = inspect.getsourcefile(inspect.unwrap(obj))<EOL><DEDENT>else:<EOL><INDENT>fn = inspect.getsourcefile(obj)<EOL><DEDENT><DEDENT>except TypeError:<EOL><INDENT>fn = None<EOL><DEDENT>if not fn:<EOL><INDENT>return None<EOL><DEDENT>try:<EOL><INDENT>source, lineno = inspect.getsourcelines(obj)<EOL><DEDENT>except OSError:<EOL><INDENT>lineno = None<EOL><DEDENT>if lineno:<EOL><INDENT>linespec = "<STR_LIT>".format(lineno, lineno + len(source) - <NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>linespec = "<STR_LIT>"<EOL><DEDENT>fn = os.path.relpath(fn, start=os.path.dirname(pandas.__file__))<EOL>if '<STR_LIT:+>' in pandas.__version__:<EOL><INDENT>return ("<STR_LIT>"<EOL>"<STR_LIT>".format(fn, linespec))<EOL><DEDENT>else:<EOL><INDENT>return ("<STR_LIT>"<EOL>"<STR_LIT>".format(pandas.__version__, fn, linespec))<EOL><DEDENT>
Determine the URL corresponding to Python object