code: def write_examples(examples: Sequence[JsonDict], path: str):
      """Write examples to disk as LIT JSONL format."""
      with open(path, "w") as fd:
          for ex in examples:
              fd.write(serialize.to_json(ex) + "\n")
  
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 2 for calling a global function with example usage: write_examples(examples, path) without return types