code: def _save_npy(self, results, imgs_path):
      for i in range(results.shape[0]):
          basename = os.path.basename(imgs_path[i])
          basename, _ = os.path.splitext(basename)
          basename = f"{basename}.npy"
          np.save(os.path.join(self.args.save_dir, basename), results)
  
imports: import os
  import sys
  import codecs
  import warnings
  import argparse
  import yaml
  import functools
  import numpy
  from paddle.inference import create_predictor, PrecisionType
  from paddle.inference import Config
  import paddle
  import medicalseg.transforms
  from medicalseg.cvlibs import manager
  from medicalseg.utils import get_sys_env, logger, get_image_list
  from medicalseg.utils.visualize import get_pseudo_color_map
  from medicalseg.core.infer import sliding_window_inference
  from tools import HUnorm, resample
  from tools import Prep
label_desc: Use image node_id 8 for calling the Predictor obj's underlying member method code with example usage: obj._save_npy(results, imgs_path) without return types