code: def time_is_exceeded(start_time, runtime):
      """Helper method to determine if the runtime has exceeded or not.
  
      Returns
      -------
      bool
          Whether or not hte runtime has exceeded.
      """
      elapsed = time.time() - start_time
      exceeded = runtime is not None and elapsed >= runtime
      if exceeded:
          warnings.warn(
              "Max runtime exceeded. Approximate solution is given.",
              RuntimeWarning,
          )
  
      return exceeded
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import math
  import time
  import warnings
  import numpy
label_desc: Use image node_id 22 for calling a global function with example usage: time_is_exceeded(start_time, runtime) and returns: exceeded