def METHOD_NAME():
    ''' Check the node_str method of the Code Block class.'''
    cblock = CodeBlock([], "dummy")
    coloredtext = colored("CodeBlock", CodeBlock._colour)
    output = cblock.node_str()
    assert coloredtext+"[" in output
    assert "]" in output