docstr: Creates a src path string with line info for use as markdown link.
          
docstr_tok: ["Creates","a","src","path","string","with","line","info","for","use","as","markdown","link","."]
code: def get_src_path(self, obj, append_base=True):
      """Creates a src path string with line info for use as markdown link."""
      path = getsourcefile(obj)
      if self.src_root not in path:
          # this can happen with e.g.
          # inlinefunc-wrapped functions
          if hasattr(obj, "__module__"):
              path = "%s.%s" % (obj.__module__, obj.__name__)
          else:
              path = obj.__name__
          path = path.replace(".", "/")
      pre, post = path.rsplit(self.src_root + "/", 1)
  
      lineno = self.get_line_no(obj)
      lineno = "" if lineno is None else "#L{}".format(lineno)
  
      path = self.src_root + "/" + post + lineno
      if append_base:
          path = os.path.join(self.github_link, path)
      return path
  
file_path: keras-vis/docs/md_autogen.py
imports: import os
  import re
  import inspect
  from inspect import getdoc, getargspec, getsourcefile, getsourcelines, getmembers
  from collections import defaultdict
  import sys
label_desc: Use image node_id 3 for calling the MarkdownAPIGenerator obj's underlying member method code with example usage: obj.get_src_path(obj, append_base) and returns: path