@staticmethod
  def _ValidateCommand(params):
    # Parse the command to verify the basic format and options
    args = [curr.value for curr in params]
    parser = lab_common.PARSER  # Reuse the client's parser
    try:
      reqs = parser.parse_args(args)
    except:
      raise ValueError('Unsupported command: %s' % ' '.join(args))
    if len(reqs) != len(params):
      raise ValueError('Parsed length mismatch?')

    # Verify that the expected in/out file args are provided
    for index in range(len(params)):
      required = reqs[index]
      provided = params[index]
      in_required = isinstance(required, lab_common.InputFileParameter)
      in_provided = (provided.header.in_ is not None)
      if in_required != in_provided:
        raise ValueError('arg[%s]=%s %s input file', index, required,
                         'provides' if in_provided else 'lacks')
      out_required = isinstance(required, lab_common.OutputFileParameter)
      out_provided = (provided.out_dn is not None)
      if out_required != out_provided:
        raise ValueError('arg[%s]=%s %s output file', index, required,
                         'provides' if out_provided else 'lacks')
Get value for key: prefix+key, first look in localstore
dataset/ETHPy150Open google/lab_device_proxy/lab_device_proxy_server.py/LabDeviceProxyRequestHandler._ValidateCommand--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/storage.py/Storage.get_iter