code: def attach_code_hash(s):
      """Decorator for attaching a code hash to a schedule
  
      Parameters
      ----------
      s: Schedule
          tvm.te.schedule.Schedule to attach the hash to
      """
  
      def decorator(func):
          @functools.wraps(func)
          def wrapper(*args, **kwargs):
              func(*args, **kwargs)
              raw_hash = zlib.crc32(
                  "".join(inspect.getsourcelines(func)[0]).encode()
              )
              s.code_hash = hex(raw_hash)[2:]
  
          return wrapper
  
      return decorator
  
imports: import functools
  import inspect
  import zlib
  from tvm.te import schedule
label_desc: Use image node_id 1 for calling a global function with example usage: attach_code_hash(s) and returns: decorator, wrapper