<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_service(self, service_type=None):
 """Return a service using."""

        for service in self._services:
            if service.type == service_type and service_type:
                return service
        return None