code: def getCodeLink(formatter, schema):
      formatter = formatter.clone()
      path = os.path.relpath(schema.file, "caffe2")
      schemaLink = (
          "https://github.com/pytorch/pytorch/blob/main/{path}".format(
              path=path
          )
      )
      formatter.addLink("{path}".format(path=path), schemaLink)
      return formatter.dump()
  
imports: import argparse
  import os
  from caffe2.python.docs.formatter import Markdown
  from caffe2.python.docs.generator import OpDocGenerator, DocUploader
  from caffe2.python.docs.generator import OperatorDoc, OperatorEngine
label_desc: Use image node_id 1 for calling a global function with example usage: getCodeLink(formatter, schema) and returns: formatter