nodes: 0, module; 1, function_definition; 2, function_name:checks; 3, parameters; 4, block; 5, identifier:self; 6, identifier:service; 7, keyword_separator; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, default_parameter; 12, expression_statement; 13, expression_statement; 14, expression_statement; 15, expression_statement; 16, return_statement; 17, identifier:dc; 18, None; 19, identifier:near; 20, None; 21, identifier:watch; 22, None; 23, identifier:consistency; 24, None; 25, comment:"""Returns the checks of a service
  
          Parameters:
              dc (str): Specify datacenter that will be used.
                        Defaults to the agent's local datacenter.
              near (str): With a node name will sort the node list in ascending
                          order based on the estimated round trip time from that
                          node
              watch (Blocking): Do a blocking query
              consistency (Consistency): Force consistency
          Returns:
              CollectionMeta: where value is a list of checks
          """; 26, assignment; 27, assignment; 28, assignment; 29, call; 30, identifier:service_id; 31, call; 32, identifier:params; 33, dictionary; 34, identifier:response; 35, await; 36, identifier:consul; 37, argument_list; 38, identifier:extract_attr; 39, argument_list; 40, pair; 41, pair; 42, call; 43, identifier:response; 44, identifier:service; 45, keyword_argument; 46, string:"dc"; 47, identifier:dc; 48, string:"near"; 49, identifier:near; 50, attribute; 51, argument_list; 52, identifier:keys; 53, list; 54, attribute; 55, identifier:get; 56, string:"/v1/health/checks"; 57, identifier:service_id; 58, keyword_argument; 59, keyword_argument; 60, keyword_argument; 61, string:"ServiceID"; 62, string:"ID"; 63, identifier:self; 64, identifier:_api; 65, identifier:params; 66, identifier:params; 67, identifier:watch; 68, identifier:watch; 69, identifier:consistency; 70, identifier:consistency
code: async def checks(self, service, *,
                       dc=None, near=None, watch=None, consistency=None):
          """Returns the checks of a service
  
          Parameters:
              dc (str): Specify datacenter that will be used.
                        Defaults to the agent's local datacenter.
              near (str): With a node name will sort the node list in ascending
                          order based on the estimated round trip time from that
                          node
              watch (Blocking): Do a blocking query
              consistency (Consistency): Force consistency
          Returns:
              CollectionMeta: where value is a list of checks
          """
          service_id = extract_attr(service, keys=["ServiceID", "ID"])
          params = {"dc": dc, "near": near}
          response = await self._api.get("/v1/health/checks", service_id,
                                         params=params,
                                         watch=watch,
                                         consistency=consistency)
          return consul(response)