<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_calendar_resource(self, cal_resource):
 """ Fetches an calendar resource with all its attributes. :param account: a CalendarResource, with either id or name attribute set. :returns: a CalendarResource object, filled. """

        selector = cal_resource.to_selector()
        resp = self.request_single('GetCalendarResource',
                                   {'calresource': selector})
        return zobjects.CalendarResource.from_dict(resp)