class_docstr: json module cannot serialize numpy datatypes, reinterpret them first
class_docstr_tok: ["json","module","can","not","serialize","numpy","datatypes",",","reinterpret","them","first"]
code: def default(self, obj):
      obj_type = type(obj)
      if obj_type in _NUMPY_INT_DTYPES:
          return int(obj)
      if obj_type in _NUMPY_FP_DTYPES:
          return float(obj)
      return json.JSONEncoder.default(self, obj)
  
file_path: tensor2tensor/tensor2tensor/insights/server.py
imports: import json
  from flask import Flask
  from flask import jsonify
  from flask import request
  from flask import send_from_directory
  from flask.json import JSONEncoder
  from gunicorn.app.base import BaseApplication
  from gunicorn.six import iteritems
  import numpy
  from tensor2tensor.insights import transformer_model
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the NumpySerializationFix obj's underlying member method code with example usage: obj.default(obj) and returns: json, int, float