docs: def record_asciinema():
      '''a wrapper around generation of an asciinema.api.Api and a custom 
         recorder to pull out the input arguments to the Record from argparse.
         The function generates a filename in advance and a return code
         so we can check the final status. 
      '''
  
      import asciinema.config as aconfig
      from asciinema.api import Api
  
      # Load the API class
  
      cfg = aconfig.load()
      api = Api(cfg.api_url, os.environ.get("USER"), cfg.install_id)
  
      # Create dummy class to pass in as args
      recorder = HelpMeRecord(api)
      code = recorder.execute()
      
      if code == 0 and os.path.exists(recorder.filename):
          return recorder.filename
      print('Problem generating %s, return code %s' %(recorder.filename, code))