code: def cluster_nodes(self, state=None, healthy=None):
          
          path = '/ws/v1/cluster/nodes'
          # TODO: validate state argument
  
          legal_healthy = ['true', 'false']
          if healthy is not None and healthy not in legal_healthy:
              msg = 'Valid Healthy arguments are true, false'
              raise IllegalArgumentError(msg)
  
          loc_args = (
              ('state', state),
              ('healthy', healthy),
          )
          params = self.construct_parameters(loc_args)
  
          return self.request(path, **params)
docs: With the Nodes API, you can obtain a collection of resources, each of
          which represents a node.
  
          :returns: API response object with JSON data
          :rtype: :py:class:`yarn_api_client.base.Response`
          :raises yarn_api_client.errors.IllegalArgumentError: if `healthy`
              incorrect