code: def get_topics(yaml_info):
      ''' Returns the names of all of the topics in the bag, and prints them
          to stdout if requested
      '''
      # Pull out the topic info
      names = []
      # Store all of the topics in a dictionary
      topics = yaml_info['topics']
      for topic in topics:
          names.append(topic['topic'])
  
      return namef get_topics(yaml_info):
      ''' Returns the names of all of the topics in the bag, and prints them
          to stdout if requested
      '''
      # Pull out the topic info
      names = []
      # Store all of the topics in a dictionary
      topics = yaml_info['topics']
      for topic in topics:
          names.append(topic['topic'])
  
      return names
docs: Returns the names of all of the topics in the bag, and prints them
          to stdout if requested