docs: def _global_index():
      """ Create grammar for a global index declaration """
      var_and_type = var + Optional(type_)
      global_dec = Suppress(upkey("global")) + index
      range_key_etc = Suppress(",") + Group(throughput) | Optional(
          Group(Suppress(",") + var_and_type).setResultsName("range_key")
      ) + Optional(Suppress(",") + include_vars) + Optional(
          Group(Suppress(",") + throughput)
      )
      global_spec = (
          Suppress("(")
          + primitive
          + Suppress(",")
          + Group(var_and_type).setResultsName("hash_key")
          + range_key_etc
          + Suppress(")")
      )
      return Group(global_dec + global_spec).setName("global index")