code: def model_export(model, file_name, repo=None):
      
      with codecs.open(file_name, 'w', encoding="utf-8") as f:
          model_export_to_file(f, model, repo)
docs: Args:
          model: the model to be exported (may be None if repo is not None)
          file_name: the output file name
          repo: the model repo (alternative to model input) to be exported
  
      Returns:
          Nothing