code: def make_serializable(json):
      """This function ensures that the dictionary is JSON serializable. If not,
      keys with non-serializable values are removed from the return value.
  
      Args:
          json (dict): Dictionary to convert to serializable
  
      Returns:
          new_dict (dict): New dictionary with non JSON serializable values removed
      """
      new_dict = dict()
      for key, value in iteritems(json):
          if is_valid_json(value):
              new_dict[key] = value
  
      return new_dict
  
imports: from __future__ import absolute_import, print_function, division, unicode_literals
  import imp
  import sys
  import os
  import hashlib
  import json
  import numpy
  from sqlalchemy import create_engine
  from sqlalchemy.orm import Session
  from six import exec_, iteritems
  from sklearn import datasets
  from sklearn import model_selection
  from xcessiv import app, exceptions
label_desc: Use image node_id 8 for calling a global function with example usage: make_serializable(json) and returns: new_dict