code: def fail(message=None):
      if message is None:
          raise AssertionError("Failure")
      else:
          raise AssertionError("Failure: '" + message + "'")
  
file_path: pyclustering/pyclustering/tests/assertion.py
imports: import numpy
label_desc: Use image node_id 9 for calling the assertion obj's underlying member method code with example usage: obj.fail(message) without return types