nodes: 0, module; 1, function_definition; 2, function_name:missing_labels; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, return_statement; 8, comment:"""
          A 1D `~numpy.ndarray` of the sorted non-zero labels that are
          missing in the consecutive sequence from zero to the maximum
          label number.
          """; 9, call; 10, attribute; 11, argument_list; 12, identifier:np; 13, identifier:array; 14, call; 15, identifier:sorted; 16, argument_list; 17, call; 18, attribute; 19, argument_list; 20, call; 21, identifier:difference; 22, call; 23, identifier:set; 24, argument_list; 25, attribute; 26, argument_list; 27, call; 28, identifier:np; 29, identifier:insert; 30, attribute; 31, integer:0; 32, integer:0; 33, identifier:range; 34, argument_list; 35, identifier:self; 36, identifier:labels; 37, integer:0; 38, binary_operator:self.max_label + 1; 39, attribute; 40, integer:1; 41, identifier:self; 42, identifier:max_label
code: def missing_labels(self):
          """
          A 1D `~numpy.ndarray` of the sorted non-zero labels that are
          missing in the consecutive sequence from zero to the maximum
          label number.
          """
  
          return np.array(sorted(set(range(0, self.max_label + 1)).
                                 difference(np.insert(self.labels, 0, 0))))