code: def test_parse_shorthand_all_timeunits():
      timeUnits = []
      for loc in ["Local", "Utc"]:
          for typ in ["Single", "Multi"]:
              defn = loc + typ + "TimeUnit"
              timeUnits.extend(
                  alt.Root._schema["definitions"][defn]["enum"]
              )
      for timeUnit in timeUnits:
          shorthand = "{timeUnit}(field):Q".format(timeUnit=timeUnit)
          assert parse_shorthand(shorthand) == {
              "timeUnit": timeUnit,
              "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 6 for calling a global function with example usage: test_parse_shorthand_all_timeunits() without return types