code: def __init__(self, params={}):
      super(LearnerTimeConstraint, self).__init__(params)
      self.name = params.get("name", "learner_time_constraint")
      self.min_steps = params.get("min_steps")
      self.learner_time_limit = params.get(
          "learner_time_limit"
      )  # in seconds
      self.iterations_count = 0
  
file_path: mljar-supervised/supervised/callbacks/learner_time_constraint.py
imports: import logging
  import time
  import numpy
  from supervised.callbacks.callback import Callback
  from supervised.utils.config import LOG_LEVEL
label_desc: Use image node_id 1 to create a new LearnerTimeConstraint object from inherited base classes: Callback with example: obj = LearnerTimeConstraint(params)