def __validate_args(self, parameters, secret):
    if type(parameters) != type('') and type(parameters) != type({}):
      raise TypeError('Invalid data type for parameters. Must be a '
                      'JSON string or a dictionary.')
    elif type(secret) != type(''):
      raise TypeError('Invalid data type for secret. Must be a string.')

    if type(parameters) == type(''):
      parameters = json.loads(parameters)
    return parameters, secret
Schedules an action to be executed at duetime.
dataset/ETHPy150Open AppScale/appscale/InfrastructureManager/infrastructure_manager.py/InfrastructureManager.__validate_args--crossover with--dataset/ETHPy150Open ReactiveX/RxPY/rx/concurrency/mainloopscheduler/tkinterscheduler.py/TkinterScheduler.schedule_absolute