<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def kube_node_spec_unschedulable(self, metric, scraper_config):
 """ Whether a node can schedule new pods. """

        metric_name = scraper_config['namespace'] + '.node.status'
        statuses = ('schedulable', 'unschedulable')
        if metric.type in METRIC_TYPES:
            for sample in metric.samples:
                tags = [
                    self._format_tag(label_name, label_value, scraper_config)
                    for label_name, label_value in iteritems(sample[self.SAMPLE_LABELS])
                ]
                tags += scraper_config['custom_tags']
                status = statuses[int(sample[self.SAMPLE_VALUE])]  # value can be 0 or 1
                tags.append(self._format_tag('status', status, scraper_config))
                self.gauge(metric_name, 1, tags)  # metric value is always one, value is on the tags
        else:
            self.log.error("Metric type %s unsupported for metric %s" % (metric.type, metric.name))