def attributes(cls, create=False, extra=None):
        """Build a dict of attribute values, respecting declaration order.

        The process is:
        - Handle 'orderless' attributes, overriding defaults with provided
            kwargs when applicable
        - Handle ordered attributes, overriding them with provided kwargs when
            applicable; the current list of computed attributes is available
            to the currently processed object.
        """
        warnings.warn(
            "Usage of Factory.attributes() is deprecated.",
            DeprecationWarning,
            stacklevel=2,
        )
        declarations = cls._meta.pre_declarations.as_dict()
        declarations.update(extra or {})
        from . import helpers
        return helpers.make_factory(dict, **declarations)
Build a dict of attribute values, respecting declaration order.

        The process is:
        - Handle 'orderless' attributes, overriding defaults with provided
            kwargs when applicable
        - Handle ordered attributes, overriding them with provided kwargs when
            applicable; the current list of computed attributes is available
            to the currently processed object.