<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def capability_info(self, name=None):
 """Return information about the requested capability from this list. Will return None if there is no information about the requested capability. """

        for r in self.resources:
            if (r.capability == name):
                return(r)
        return(None)