code: def _get_regex(func):
      return getattr(func, "regex", func.__doc__)
  
imports: import re
  import sys
  import types
  import copy
  import os
  import inspect
label_desc: Use image node_id 1 for calling a global function with example usage: _get_regex(func) and returns: getattr