code: def model_spend(self, model_type):
      return np.sum(
          [
              s["train_time"]
              for s in self._spend
              if s["model_type"] == model_type
          ]
      )
  
file_path: mljar-supervised/supervised/tuner/time_controller.py
imports: import json
  import logging
  import time
  import numpy
  import pandas
  from supervised.utils.config import LOG_LEVEL
label_desc: Use image node_id 13 for calling the TimeController obj's underlying member method code with example usage: obj.model_spend(model_type) and returns: np