code: def test_parse_shorthand_all_aggregates():
      aggregates = alt.Root._schema["definitions"]["AggregateOp"][
          "enum"
      ]
      for aggregate in aggregates:
          shorthand = "{aggregate}(field):Q".format(aggregate=aggregate)
          assert parse_shorthand(shorthand) == {
              "aggregate": aggregate,
              "field": "field",
              "type": "quantitative",
          }
  
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 5 for calling a global function with example usage: test_parse_shorthand_all_aggregates() without return types