text: import logging
  from os import path
  from cs251tk.common import chdir
  from cs251tk.student.markdownify import markdownify
  
  
  def record(student, *, specs, to_record, basedir, debug, interact):
      recordings = []
      if not to_record:
          return recordings
  
      with chdir(student):
          for one_to_record in to_record:
              logging.debug("Recording  {}'s {}".format(student, one_to_record))
              if path.exists(one_to_record):
                  with chdir(one_to_record):
                      recording = markdownify(one_to_record,
                                              username=student,
                                              spec=specs[one_to_record],
                                              basedir=basedir,
                                              debug=debug,
                                              interact=interact,
                                              student=student)
              else:
                  recording = {
                      'spec': one_to_record,
                      'student': student,
                      'first_submit': "",
                      'warnings': {'no submission': True},
                  }
  
              recordings.append(recording)
  
      return recordings
  