class_docstr: :class:`.History` class that keeps a list of all strings in memory.
  
  In order to prepopulate the history, it's possible to call either
  `append_string` for all items or pass a list of strings to `__init__` here.
code: def __init__(
      self, history_strings: Sequence[str] | None = None
  ) -> None:
      super().__init__()
      # Emulating disk storage.
      if history_strings is None:
          self._storage = []
      else:
          self._storage = list(history_strings)
  
imports: from __future__ import annotations
  import datetime
  import os
  import threading
  from abc import ABCMeta, abstractmethod
  from asyncio import get_running_loop
  from typing import AsyncGenerator, Iterable, Sequence
label_desc: Use image node_id 1 to create a new InMemoryHistory object from inherited base classes: History with example: obj = InMemoryHistory(history_strings)