def generate_code(self):
    print 'Generating code for the', self.name, 'class...'
    pcg = PythonCodeGenerator()
    pcg.begin(tab='  ')
    signature = 'class ' + self.name
    if self.super_class:
      signature += '(' + self.super_class + ')'
    signature += ':'
    pcg.writeln(signature)
    if len(self.methods):
      for i in range(0, len(self.methods)):
        if i > 0:
          pcg.writeln()
        self.methods[i].generate_code(pcg)
    else:
      # If the class has no methods, simply generate a class body with a single
      # 'pass' statement.
      pcg.indent()
      pcg.writeln('pass')
      pcg.dedent()
    return pcg.end()
Test if command exists and if not, execute the task.
dataset/ETHPy150Open hiranya911/rest-coder/python-lib/codegen_core.py/Class.generate_code--crossover with--dataset/ETHPy150Open ipeirotis/Mturk-Tracker/deployment/modules/centos.py/check_command