code: def linkify(self, text, prefix):
      def replace(x):
          # HACK
          if "collections" in x.group():
              return x.group()
  
          if text.count("```", 0, x.start()) % 2 == 1:
              return x.group()
  
          y = x.group().strip("`")
          if path := self.path_index.get(y):
              name = self.rename_index.get(y, y)
              name = f"`{name}`'" if x.group().startswith("`") else name
              name = name.strip("'")
              return f"[{name}]({prefix}{path})"
          return x.group()
  
      return self.PATTERN.sub(replace, text)
  
imports: import argparse
  import collections
  import doctest
  import functools
  import importlib
  import inspect
  import os
  import pathlib
  import re
  import shutil
  from numpydoc.docscrape import ClassDoc, FunctionDoc
label_desc: Use image node_id 2 for calling the Linkifier obj's underlying member method code with example usage: obj.linkify(text, prefix) and returns: self, x, x, x, str, name, str, prefix, path, str