class_docstr: Wrapper that converts list-indexed multiagent environments to dict-indexed.
  
  Specifically, if the underlying environment observation and actions are:
    observation = [observation_agent_0, observation_agent_1, ...]
    action = [action_agent_0, action_agent_1, ...]
  
  They are converted instead to:
    observation = {'0': observation_agent_0, '1': observation_agent_1, ...}
    action = {'0': action_agent_0, '1': action_agent_1, ...}
  
  This can be helpful in situations where dict-based structures are natively
  supported, whereas lists are not (e.g., in tfds, where ragged observation data
  can directly be supported if dicts, but not natively supported as lists).
class_docstr_tok: ["Wrapper","that","converts","list-indexed","multiagent","environments","to","dict-indexed",".","Specifically",",","if","the","underlying","environment","observation","and","actions","are",":","observation","=","[","observation_agent_0",",","observation_agent_1",",","...","]","action","=","[","action_agent_0",",","action_agent_1",",","...","]","They","are","converted","instead","to",":","observation","=","{","'","0","'",":","observation_agent_0",",","'","1","'",":","observation_agent_1",",","...","}","action","=","{","'","0","'",":","action_agent_0",",","'","1","'",":","action_agent_1",",","...","}","This","can","be","helpful","in","situations","where","dict-based","structures","are","natively","supported",",","whereas","lists","are","not","(","e.g.",",","in","tfds",",","where","ragged","observation","data","can","directly","be","supported","if","dicts",",","but","not","natively","supported","as","lists",")","."]
code: def action_spec(self) -> types.NestedSpec:  # Internal pytype check.
      return self._action_spec
  
file_path: acme/acme/wrappers/multiagent_dict_key_wrapper.py
imports: from typing import Any, Dict, List, TypeVar, Union
  from acme import types
  from acme.wrappers import base
  import dm_env
label_desc: Use image node_id 7 for calling the MultiagentDictKeyWrapper obj's underlying member method code with example usage: obj.action_spec() and returns: self