code: def read_cell_metadata(token, cell_index):
      """Return cell metadata"""
      metadata = {}
      if token.content:
          try:
              metadata = json.loads(token.content.strip())
          except Exception as err:
              raise MystMetadataParsingError(
                  "Markdown cell {} at line {} could not be read: {}".format(
                      cell_index, token.map[0] + 1, err
                  )
              )
          if not isinstance(metadata, dict):
              raise MystMetadataParsingError(
                  "Markdown cell {} at line {} is not a dict".format(
                      cell_index, token.map[0] + 1
                  )
              )
  
      return metadata
  
imports: import json
  import re
  import warnings
  from textwrap import dedent
  import nbformat
  import yaml
  from .cell_to_text import three_backticks_or_more
label_desc: Use image node_id 14 for calling a global function with example usage: read_cell_metadata(token, cell_index) and returns: metadata