code: def find_service_by_id(self, service_id):
          
          service_id_key = 'serviceDefinitionId'
          service_id = str(service_id)
          for service in self._services:
              if service_id_key in service.values and str(
                      service.values[service_id_key]) == service_id:
                  return service
  
          try:
              # If service_id is int or can be converted to int then we couldn't find it
              int(service_id)
              return None
          except ValueError:
              pass
  
          # try to find by type
          return self.find_service_by_type(service_id)
docs: Get service for a given service_id.
  
          :param service_id: Service id, str
          :return: Service