class_docstr: Special json encoder for numpy types
class_docstr_tok: ["Special","json","encoder","for","numpy","types"]
code: def default(self, obj):
      if isinstance(obj, np.integer):
          return int(obj)
      elif isinstance(obj, np.floating):
          return float(obj)
      elif isinstance(obj, np.ndarray):
          return obj.tolist()
      return json.JSONEncoder.default(self, obj)
  
imports: import datetime
  import json
  import os
  from typing import Dict, List
  import numpy
  from sqlalchemy import JSON, Boolean, Column, DateTime, Index, Integer, String, Table, UniqueConstraint, create_engine, text, types
  from sqlalchemy.exc import OperationalError
  from sqlalchemy.orm import Mapped, declarative_base, relationship, scoped_session, sessionmaker
  from sqlalchemy.sql.schema import ForeignKey
  from mindsdb.utilities.json_encoder import CustomJSONEncoder
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, obj