<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_properties(self, feature):
 """Returns all contained properties associated with 'feature'"""

        if not isinstance(feature, b2.build.feature.Feature):
            feature = b2.build.feature.get(feature)
        assert isinstance(feature, b2.build.feature.Feature)

        result = []
        for p in self.all_:
            if p.feature == feature:
                result.append(p)
        return result