parameters: (condition)
docstring: Verifies the |condition| dictionary is in the expected format.
docstring_summary: Verifies the |condition| dictionary is in the expected format.
docstring_tokens: Verifies the |condition| dictionary is in the expected format .
function: def verify_condition(condition):
    """Verifies the |condition| dictionary is in the expected format."""
    VALID_INSIDE_CONDITION = ['variables']
    assert isinstance(condition, list), condition
    assert 2 <= len(condition) <= 3, condition
    assert re.match(r'OS==\"([a-z]+)\"', condition[0]), condition[0]
    for c in condition[1:]:
      assert isinstance(c, dict), c
      assert set(VALID_INSIDE_CONDITION).issuperset(set(c)), c.keys()
      verify_variables(c.get('variables', {}))
function_tokens: def verify_condition ( condition ) : VALID_INSIDE_CONDITION = [ 'variables' ] assert isinstance ( condition , list ) , condition assert 2 <= len ( condition ) <= 3 , condition assert re . match ( r'OS==\"([a-z]+)\"' , condition [ 0 ] ) , condition [ 0 ] for c in condition [ 1 : ] : assert isinstance ( c , dict ) , c assert set ( VALID_INSIDE_CONDITION ) . issuperset ( set ( c ) ) , c . keys ( ) verify_variables ( c . get ( 'variables' , { } ) )