code: def update_checksum(checksum, obj):
      if isinstance(obj, str):
          checksum.update(obj.encode("utf8"))
      else:
          checksum.update(obj)
  
imports: import re
  import os
  import sys
  from dataclasses import dataclass
  from typing import List, Optional, Tuple
  import pyopencl._cl
  import logging
  import hashlib
label_desc: Use image node_id 2 for calling a global function with example usage: update_checksum(checksum, obj) without return types