code: def code_name(code, number=0):
      """Compute a (probably) unique name for code for caching.
  
      This now expects code to be unicode.
      """
      hash_digest = hashlib.sha1(code.encode("utf-8")).hexdigest()
      # Include the number and 12 characters of the hash in the name.  It's
      # pretty much impossible that in a single session we'll have collisions
      # even with truncated hashes, and the full one makes tracebacks too long
      return "<ipython-input-{0}-{1}>".format(number, hash_digest[:12])
  
imports: import __future__
  from ast import PyCF_ONLY_AST
  import codeop
  import functools
  import hashlib
  import linecache
  import operator
  import time
  from contextlib import contextmanager
label_desc: Use image node_id 1 for calling a global function with example usage: code_name(code, number) and returns: str