def get_layout_by_name(layout_name):
    # decode and return this layout
    try:
        return zlib.decompress(base64.decodebytes(__layouts.__dict__[layout_name].encode())).decode()
    except KeyError as ke:
        # This happens if layout_name is not a valid key in the __dict__.
        # I.e. if the layout_name is not available.
        # The error message would be to terse "KeyError: 'non_existing_layout'",
        # thus reraise as ValueError with appropriate error message.
        raise ValueError("Layout: '%s' is not known." % ke.args)
Diagnostic method for listing out the contents of a C{ParseResults}.
dataset/ETHPy150Open ASPP/pelita/pelita/layout.py/get_layout_by_name--crossover with--dataset/ETHPy150Open pypa/pip/pip/_vendor/pyparsing.py/ParseResults.dump