def METHOD_NAME(self):
    with tempfile.TemporaryDirectory(prefix=GEF_DEFAULT_TEMPDIR) as dd:
        dirpath = pathlib.Path(dd).absolute()
        with tempfile.NamedTemporaryFile(dir = dirpath, suffix=".py") as fd:
            fd.write(struct)
            fd.seek(0)
            fd.flush()
            # no address
            res = gdb_run_cmd("pcustom foo_t",
                            before=[f"gef config pcustom.struct_path {dirpath}",])
            self.assertNoException(res)
            if is_64b():
                self.assertIn("0000   a                     c_int  /* size=0x4 */", res)
                self.assertIn("0004   b                     c_int  /* size=0x4 */", res)
            else:
                self.assertIn("0000   a                     c_long  /* size=0x4 */", res)
                self.assertIn("0004   b                     c_long  /* size=0x4 */", res)
            # with address
            res = gdb_run_silent_cmd("pcustom goo_t 0x1337100", target=_target("pcustom"),
                                    before=[f"gef config pcustom.struct_path {dirpath}",])
            self.assertNoException(res)
            if is_64b():
                self.assertIn(f"""0x1337100+0x00 a :                      3 (c_int)