code: def _check_super_called(self):
      if not hasattr(self, "_lock"):
          raise RuntimeError(
              f"In optimizer '{self.__class__.__name__}', you forgot to call "
              "`super().__init__()` as the first statement "
              "in the `__init__()` method. "
              "Go add it!"
          )
  
imports: import re
  import warnings
  import numpy
  from keras import backend
  from keras import initializers
  from keras import ops
  from keras.optimizers.schedules import learning_rate_schedule
  from keras.saving import serialization_lib
  from keras.utils import tracking
  from keras.utils.naming import auto_name
label_desc: Use image node_id 33 for calling the BaseOptimizer obj's underlying member method code with example usage: obj._check_super_called() without return types