<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_struct_cxformwithalpha(self):
 """Get the values for the CXFORMWITHALPHA record."""

        obj = _make_object("CXformWithAlpha")
        bc = BitConsumer(self._src)

        obj.HasAddTerms = bc.u_get(1)
        obj.HasMultTerms = bc.u_get(1)
        obj.NBits = nbits = bc.u_get(4)

        if obj.HasMultTerms:
            obj.RedMultTerm = bc.s_get(nbits)
            obj.GreenMultTerm = bc.s_get(nbits)
            obj.BlueMultTerm = bc.s_get(nbits)
            obj.AlphaMultTerm = bc.s_get(nbits)

        if obj.HasAddTerms:
            obj.RedAddTerm = bc.s_get(nbits)
            obj.GreenAddTerm = bc.s_get(nbits)
            obj.BlueAddTerm = bc.s_get(nbits)
            obj.AlphaAddTerm = bc.s_get(nbits)

        return obj