code: def get_or_create_nest(
      self,
      key: Key,
      *,
      access_lists: bool = True,
  ) -> dict:
      cont: Any = self.dict
      for k in key:
          if k not in cont:
              cont[k] = {}
          cont = cont[k]
          if access_lists and isinstance(cont, list):
              cont = cont[-1]
          if not isinstance(cont, dict):
              raise KeyError("There is no nest behind this key")
      return cont
  
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 2 for calling the NestedDict obj's underlying member method code with example usage: obj.get_or_create_nest(key) and returns: cont