code: def predict_from_json(self, obj, **kwargs):
      req = json.loads(obj)
      instances = req["instances"]
      x = np.array([instance["features"] for instance in instances])
      return self.predict(x, **kwargs)
  
file_path: sagemaker-python-sdk/tests/data/marketplace/iris/scoring_logic.py
imports: from enum import IntEnum
  import json
  import logging
  import re
  from flask import Flask
  from flask import request
  from joblib import dump, load
  import numpy
  import os
label_desc: Use image node_id 4 for calling the IrisModel obj's underlying member method code with example usage: obj.predict_from_json(obj) and returns: self