code: def isfunction(obj):
      orig_val = orig(obj)
  
      new_val = hasattr(type(obj), "__code__")
  
      if orig_val != new_val:
          return new_val
  
      return orig_val
  
file_path: cuml/docs/source/sphinxext/github_link.py
imports: import inspect
  import os
  import re
  import subprocess
  import sys
  from functools import partial
  from operator import attrgetter
label_desc: Use image node_id 1 for calling a global function with example usage: isfunction(obj) and returns: orig_val, new_val