code: def json_pickle(
      file_name: Union[Text, Path],
      obj: Any,
      encode_non_string_keys: bool = False,
  ) -> None:
      """Pickle an object to a file using json.
  
      Args:
          file_name: the file to store the object to
          obj: the object to store
          encode_non_string_keys: If set to `True` then jsonpickle will encode non-string
            dictionary keys instead of coercing them into strings via `repr()`.
      """
      import jsonpickle.ext.numpy as jsonpickle_numpy
      import jsonpickle
  
      jsonpickle_numpy.register_handlers()
  
      rasa.shared.utils.io.write_text_file(
          jsonpickle.dumps(obj, keys=encode_non_string_keys), file_name
      )
  
imports: import asyncio
  import filecmp
  import logging
  import os
  import pickle
  import tempfile
  import warnings
  import re
  from asyncio import AbstractEventLoop
  from pathlib import Path
  from typing import Text, Any, Union, List, Type, Callable, TYPE_CHECKING, Pattern
  from typing_extensions import Protocol
  import rasa.shared.constants
  import rasa.shared.utils.io
label_desc: Use image node_id 12 for calling a global function with example usage: json_pickle(file_name, obj, encode_non_string_keys) without return types