def format(self, value):
        # Convert all instances in typed list to container type
        if isinstance(value, set):
            value = list(value)

        return [
            self.container.output(idx,
                val if (isinstance(val, dict)
                        or (self.container.attribute
                            and hasattr(val, self.container.attribute)))
                        and not isinstance(self.container, Nested)
                        and not type(self.container) is Raw
                    else value)
            for idx, val in enumerate(value)
        ]
dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/fields.py/List.format/original