parameters: (section)
return_statement: return metadata
docstring: Given the first part of a slide, returns metadata associated with it.
docstring_summary: Given the first part of a slide, returns metadata associated with it.
docstring_tokens: Given the first part of a slide returns metadata associated with it .
function: def parse_metadata(section):
    """Given the first part of a slide, returns metadata associated with it."""
    metadata = {}
    metadata_lines = section.split('\n')
    for line in metadata_lines:
      colon_index = line.find(':')
      if colon_index != -1:
        key = line[:colon_index].strip()
        val = line[colon_index + 1:].strip()
        metadata[key] = val
  
    return metadata
function_tokens: def parse_metadata ( section ) : metadata = { } metadata_lines = section . split ( '\n' ) for line in metadata_lines : colon_index = line . find ( ':' ) if colon_index != - 1 : key = line [ : colon_index ] . strip ( ) val = line [ colon_index + 1 : ] . strip ( ) metadata [ key ] = val return metadata