code: def emit(self, record):
      raise AssertionError(f"Unexpected log: {self.format(record)!r}")
  
imports: import logging
  import unittest.util
label_desc: Use image node_id 2 for calling the DisallowLogsHandler obj's underlying member method code with example usage: obj.emit(record) without return types