class_docstr: A class for performing operations on the AutoML algorithm runtime at the API level
  
  :param time_for_automl: time for AutoML algorithms in minutes
docstr: Determine timeouts for tuning and composing 
docstr_tok: ["Determine","timeouts","for","tuning","and","composing"]
code: def __define_timeouts_for_stages(self):
      """Determine timeouts for tuning and composing"""
      if self.time_for_automl in [None, -1]:
          self.timeout_for_composing = None
      else:
          # Time for composing based on tuning parameters
          if self.with_tuning:
              self.timeout_for_composing = (
                  self.time_for_automl * COMPOSING_TUNING_PROPORTION
              )
          else:
              self.timeout_for_composing = self.time_for_automl
  
file_path: FEDOT/fedot/api/time.py
imports: import datetime
  from contextlib import contextmanager
  from typing import Optional
  from fedot.core.constants import COMPOSING_TUNING_PROPORTION, MINIMAL_PIPELINE_NUMBER_FOR_EVALUATION, MINIMAL_SECONDS_FOR_TUNING, MIN_NUMBER_OF_GENERATIONS
label_desc: Use image node_id 2 for calling the ApiTime obj's underlying member method code with example usage: obj.__define_timeouts_for_stages() without return types