code: def __call__(self, optimizer: base.Optimizer) -> bool:
      if np.isinf(self._start):
          self._start = time.time()
      return time.time() > self._start + self._max_duration
  
imports: import json
  import time
  import warnings
  import inspect
  import datetime
  import logging
  from pathlib import Path
  import numpy
  import nevergrad.common.typing
  from nevergrad.common import errors
  from nevergrad.parametrization import parameter
  from nevergrad.parametrization import helpers
  from .None import base
label_desc: Use image node_id 2 for calling the _DurationCriterion obj's underlying member method code with example usage: obj.__call__(optimizer) and returns: unknown