'This checks which type of processor we are running.'

def func(self):

    caller = self.caller
    if (caller.ndb.batch_batchmode == 'batch_code'):
        batch_code_exec(caller)
    else:
        batch_cmd_exec(caller)
