code: def _is_new_max(self, instance):
      if instance.max is None:
          # During constrained optimization, there might not be a maximum
          # value since the optimizer might've not encountered any points
          # that fulfill the constraints.
          return False
      if self._previous_max is None:
          self._previous_max = instance.max["target"]
      return instance.max["target"] > self._previous_max
  
imports: from __future__ import print_function
  import os
  import json
  import warnings
  from pathlib import Path
  from .observer import _Tracker
  from .event import Events
  from .util import Colours
label_desc: Use image node_id 10 for calling the ScreenLogger obj's underlying member method code with example usage: obj._is_new_max(instance) and returns: unknown, False