code: def class_definition(self, class_name):
      self.add_class_def(class_name)
      yield
      self.add_block_termination()
  
file_path: m2cgen/m2cgen/interpreters/java/code_generator.py
imports: from contextlib import contextmanager
  from m2cgen.interpreters.code_generator import CLikeCodeGenerator
label_desc: Use image node_id 4 for calling the JavaCodeGenerator obj's underlying member method code with example usage: obj.class_definition(class_name) without return types