code: def class_to_source_link(cls):
      module_name = clean_module_name(cls.__module__)
      path = module_name.replace(".", "/")
      path += ".py"
      line = inspect.getsourcelines(cls)[-1]
      link = (
          "https://github.com/hyperopt/"
          "hyperopt/blob/master/" + path + "#L" + str(line)
      )
      return "[[source]](" + link + ")"
  
file_path: hyperopt/docs/autogen.py
imports: import re
  import inspect
  import os
  import shutil
label_desc: Use image node_id 5 for calling a global function with example usage: class_to_source_link(cls) and returns: unknown