<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_features(self, yam):
 """Return list of features declared for module `yam`."""

        mcap = [ c for c in self.capabilities
                 if c.parameters.get("module", None) == yam ][0]
        if not mcap.parameters.get("features"): return []
        return mcap.parameters["features"].split(",")