code: def _list_of_slides(markdown_string):
      if not markdown_string.endswith("\n---\n"):
          markdown_string += "\n---\n"
  
      text_blocks = re.split("\n-{2,}\n", markdown_string)
  
      list_of_slides = []
      for text in text_blocks:
          if not all(char in ["\n", "-", " "] for char in text):
              list_of_slides.append(text)
  
      if "\n-\n" in markdown_string:
          msg = (
              "You have at least one '-' by itself on its own line in your "
              "markdown string. If you are trying to denote a new slide, "
              "make sure that the line has 3 '-'s like this: \n\n---\n\n"
              "A new slide will NOT be created here."
          )
          warnings.warn(msg)
  
      return list_of_slides
  
imports: import copy
  import random
  import re
  import string
  import warnings
  import _plotly_utils.exceptions
  from chart_studio import exceptions
  from chart_studio.config import get_config
label_desc: Use image node_id 8 for calling a global function with example usage: _list_of_slides(markdown_string) and returns: list_of_slides