code: def make_id_doc(name: str, path_name: Optional[str] = None) -> IdDoc:
      if path_name is None:
          path_name = name
      doc = IdDoc(name)
      doc.source_paths = [make_path(path_name)]
      return doc
  
imports: from typing import Optional
  import pytest
  from tvm.runtime import ObjectPath
  from tvm.script.printer.doc import ExprStmtDoc, IdDoc, OperationDoc, OperationKind, StmtBlockDoc
  from tvm.script.printer.doc_printer import to_python_script
  from tvm.script import ir, tir
label_desc: Use image node_id 2 for calling a global function with example usage: make_id_doc(name, path_name) and returns: doc