code: def bytes_iterator(s):
      """Given a string, return an iterator over this string's bytes (as ints)."""
      if s is None:
          return
      if isinstance(s, str):
          for ch in s:
              yield ord(ch)
      elif isinstance(s, bytes):
          for ch in s:
              yield ch
      else:
          raise TypeError("String argument expected, got %s" % type(s))
  
file_path: h2o-3/h2o-py/h2o/utils/compatibility.py
label_desc: Use image node_id 3 for calling a global function with example usage: bytes_iterator(s) without return types