code: def test_parse_shorthand_all_window_ops():
      window_ops = alt.Root._schema["definitions"]["WindowOnlyOp"][
          "enum"
      ]
      aggregates = alt.Root._schema["definitions"]["AggregateOp"][
          "enum"
      ]
      for op in window_ops + aggregates:
          shorthand = "{op}(field)".format(op=op)
          dct = parse_shorthand(
              shorthand,
              parse_aggregates=False,
              parse_window_ops=True,
              parse_timeunits=False,
              parse_types=False,
          )
          assert dct == {"field": "field", "op": op}
  
imports: import types
  from packaging.version import Version
  from importlib.metadata import version
  import numpy
  import pandas
  import pytest
  import altair
  from altair.utils.core import parse_shorthand, update_nested, infer_encoding_types
  from altair.utils.core import infer_dtype
label_desc: Use image node_id 8 for calling a global function with example usage: test_parse_shorthand_all_window_ops() without return types