code: def input_hash(example: lit_types.JsonDict) -> lit_types.ExampleId:
      """Create stable hash of an input example."""
      raw_example = {
          k: v
          for k, v in example.items()
          if k not in INPUT_INTERNAL_FIELDS
      }
      json_str = serialize.to_json(
          raw_example, simple=True, sort_keys=True
      )
      return lit_types.ExampleId(
          hashlib.md5(json_str.encode("utf-8")).hexdigest()
      )
  
imports: from collections.abc import Callable, Mapping, Sequence
  import hashlib
  import glob
  import inspect
  import os
  import random
  import types
  from typing import Optional, Union, cast
  from absl import logging
  from lit_nlp.api import types
  from lit_nlp.lib import serialize
  from lit_nlp.lib import utils
label_desc: Use image node_id 1 for calling a global function with example usage: input_hash(example) and returns: lit_types