code: def _assert_compile_called(self, method_name=None):
      if not self.compiled:
          msg = "You must call `compile()` before "
          if metrics_module:
              msg += "using the model."
          else:
              msg += f"calling `{method_name}()`."
          raise ValueError(msg)
  
imports: import platform
  import warnings
  import tree
  from keras import backend
  from keras import metrics
  from keras import ops
  from keras import optimizers
  from keras.optimizers.loss_scale_optimizer import LossScaleOptimizer
  from keras.saving import serialization_lib
  from keras.trainers.compile_utils import CompileLoss
  from keras.trainers.compile_utils import CompileMetrics
  from keras.trainers.data_adapters import data_adapter_utils
  from keras.utils import traceback_utils
  from keras.utils import tracking
label_desc: Use image node_id 26 for calling the Trainer obj's underlying member method code with example usage: obj._assert_compile_called(method_name) without return types