code: def test_container_assignment():
      source = (
          "l = []  #: list\n"
          "l[1] = True  #: list assignment\n"
          "l[0:0] = []  #: list assignment\n"
          "l[_from:_to] = []  #: list assignment\n"
          "d = {}  #: dict\n"
          'd["doc"] = 1  #: dict assignment\n'
      )
      parser = Parser(source)
      parser.parse()
      assert parser.comments == {("", "l"): "list", ("", "d"): "dict"}
      assert parser.definitions == {}
  
imports: from sphinx.pycode.parser import Parser
  from sphinx.util.inspect import signature_from_str
label_desc: Use image node_id 7 for calling a global function with example usage: test_container_assignment() without return types