def METHOD_NAME(self):
    for k, v in self.objs.items():
        if k.startswith("_"):
            continue
        for cls, col in CODENAMES:
            if v["_class"] == cls and v[col] is not None:
                v[col] = encode_codename(v[col])
                if v[col] == "":
                    logger.critical(
                        "The dump contains an instance of %s whose %s "
                        "field contains an invalid codename: `%s'.",
                        cls, col, v[col])
                    sys.exit(1)
        for cls, col in FILENAMES:
            if v["_class"] == cls and v[col] is not None:
                v[col] = encode_codename(v[col], extra="%.")
                if v[col] in {"", ".", ".."}:
                    logger.critical(
                        "The dump contains an instance of %s whose %s "
                        "field contains an invalid filename: `%s'.",
                        cls, col, v[col])
                    sys.exit(1)
        for cls, col in FILENAME_DICTS:
            if v["_class"] == cls and v[col] is not None:
                v[col] = {encode_codename(k, extra="%."): v
                          for k, v in v[col].items()}
                for k in v[col]:
                    if k in {"", ".", ".."}:
                        logger.critical(
                            "The dump contains an instance of %s whose %s "
                            "field contains an invalid filename: `%s'.",
                            cls, col, v[col])
                        sys.exit(1)
        for cls, col in DIGESTS:
            if v["_class"] == cls and v[col] is not None:
                if not re.match("^([0-9a-f]{40}|x)$", v[col]):
                    logger.critical(
                        "The dump contains an instance of %s whose %s "
                        "field contains an invalid SHA-1 digest: `%s'.",
                        cls, col, v[col])
                    sys.exit(1)
        for cls, col in IP_ADDRESSES:
            if v["_class"] == cls and v[col] is not None:
                v[col] = list(network.strip() for network in v[col].split())
                for network in v[col]:
                    try:
                        ipaddress.ip_network(network)
                    except ValueError:
                        logger.critical(
                            "The dump contains an instance of %s whose %s "
                            "field contains an invalid IPv4 address: `%s'.",
                            cls, col, v[col])
                        sys.exit(1)
    return self.objs