code: def to_list(func):
      def wrapper(*args, **kwargs):
          return list(func(*args, **kwargs))
  
      return wrapper
  
imports: import sys
  import contextlib
  import functools
  import re
  import os
  from jedi._compatibility import reraise
label_desc: Use image node_id 1 for calling a global function with example usage: to_list(func) and returns: wrapper, list