code: def _find_unicode_literals_frame():
      import __future__
  
      if not hasattr(
          sys, "_getframe"
      ):  # not all Python implementations have it
          return 0
      frm = sys._getframe(1)
      idx = 1
      while frm is not None:
          if frm.f_globals.get("__name__", "").startswith("click."):
              frm = frm.f_back
              idx += 1
          elif (
              frm.f_code.co_flags
              & __future__.unicode_literals.compiler_flag
          ):
              return idx
          else:
              break
      return 0
  
imports: import codecs
  import os
  import sys
  from ._compat import PY2
label_desc: Use image node_id 1 for calling a global function with example usage: _find_unicode_literals_frame() and returns: int, int, idx