code: def finite_time(self):
      if (time.time() - self.init) >= self.maxtime:
          self.stop_global = True
  
imports: import numpy
  import time
  import logging
  import warnings
  from scipy import spatial
  from scipy.optimize import OptimizeResult, minimize
  from scipy.optimize._shgo_lib.triangulation import Complex
label_desc: Use image node_id 9 for calling the SHGO obj's underlying member method code with example usage: obj.finite_time() without return types