code: def get_url(obj):
      """Return local or remote url for an object."""
      filename = inspect.getsourcefile(obj)
      uri = "file://%s" % filename
      revision = _get_git_revision()
      if revision is not None:
          shortfile = os.path.join(
              "nipype", filename.split("nipype/")[-1]
          )
          uri = f"http://github.com/nipy/nipype/blob/{revision}/{shortfile}"
      lines, lstart = inspect.getsourcelines(obj)
      lend = len(lines) + lstart
      return "%s#L%d-L%d" % (uri, lstart, lend)
  
imports: import os
  import inspect
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: get_url(obj) and returns: unknown