code: def append_nest_to_list(self, key: Key) -> None:
      cont = self.get_or_create_nest(key[:-1])
      last_key = key[-1]
      if last_key in cont:
          list_ = cont[last_key]
          if not isinstance(list_, list):
              raise KeyError(
                  "An object other than list found behind this key"
              )
          list_.append({})
      else:
          cont[last_key] = [{}]
  
imports: from __future__ import annotations
  from collections.abc import Iterable
  import string
  from types import MappingProxyType
  from typing import Any, BinaryIO, NamedTuple
  from ._re import RE_DATETIME, RE_LOCALTIME, RE_NUMBER, match_to_datetime, match_to_localtime, match_to_number
  from ._types import Key, ParseFloat, Pos
label_desc: Use image node_id 3 for calling the NestedDict obj's underlying member method code with example usage: obj.append_nest_to_list(key) without return types