docstr: Download the tiny-random-bart model and make a concrete copy of it
  
  Issue is the same as with tiny_random_xlnet
docstr_tok: ["Download","the","tiny-random-bart","model","and","make","a","concrete","copy","of","it","Issue","is","the","same","as","with","tiny_random_xlnet"]
code: def tiny_random_bart(self, tmp_path_factory):
      """
      Download the tiny-random-bart model and make a concrete copy of it
  
      Issue is the same as with tiny_random_xlnet
      """
      bart_name = "hf-internal-testing/tiny-random-bart"
      bart_model, bart_tokenizer = load_bert(bart_name)
      path = str(tmp_path_factory.mktemp("tiny-random-bart"))
      bart_model.save_pretrained(path)
      bart_tokenizer.save_pretrained(path)
      return path
  
imports: from collections import defaultdict
  import logging
  import pathlib
  import tempfile
  import pytest
  import torch
  from torch import optim
  from stanza import Pipeline
  from stanza.models import constituency_parser
  from stanza.models.common import pretrain
  from stanza.models.common.bert_embedding import load_bert, load_tokenizer
  from stanza.models.common.foundation_cache import FoundationCache
  from stanza.models.common.utils import set_random_seed
  from stanza.models.constituency import lstm_model
  from stanza.models.constituency import trainer
  from stanza.models.constituency import tree_reader
  from stanza.tests import *
label_desc: Use image node_id 3 for calling the TestTrainer obj's underlying member method code with example usage: obj.tiny_random_bart(tmp_path_factory) and returns: path