code: def get_expected_shape(self):
      # Compute expected shape from num_classes.
      if self.num_classes == 2 and not self.multi_label:
          return [1]
      return [self.num_classes]
  
file_path: autokeras/autokeras/analysers/output_analysers.py
imports: import numpy
  from autokeras.engine import analyser
label_desc: Use image node_id 4 for calling the ClassificationAnalyser obj's underlying member method code with example usage: obj.get_expected_shape() and returns: list, list