code: def default(self, obj):
      if isinstance(obj, np.int64) or isinstance(obj, np.int32):
          return int(obj)
      if isinstance(obj, np.float64) or isinstance(obj, np.float32):
          return float(obj)
      return json.JSONEncoder.default(self, obj)
  
file_path: pyLDAvis/notebooks/pyLDAvis/utils.py
imports: import json
  import os
  import re
  import shutil
  import warnings
  import numpy
  import pyLDAvis.urls
label_desc: Use image node_id 1 for calling the NumPyEncoder obj's underlying member method code with example usage: obj.default(obj) and returns: json, int, float