      class TestImageField(ImageField):
          attr_class = TestImageFieldFile
  
      # Set up a temp directory for file storage.
      temp_storage_dir = tempfile.mkdtemp()
      temp_storage = FileSystemStorage(temp_storage_dir)
      temp_upload_to_dir = os.path.join(temp_storage.location, 'tests')
  
      class Person(models.Model):
          """
 
</s> remove temp_storage_dir = tempfile.mkdtemp()
 </s> add temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR']) </s> remove temp_storage_location = tempfile.mkdtemp()
 </s> add temp_storage_location = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
    temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
      class TestImageField(ImageField):
          attr_class = TestImageFieldFile
  
      # Set up a temp directory for file storage.
    temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
      temp_storage = FileSystemStorage(temp_storage_dir)
      temp_upload_to_dir = os.path.join(temp_storage.location, 'tests')
  
      class Person(models.Model):
          """
keep keep keep keep replace keep keep keep keep keep
 Created import-time test temp dirs in known location

Refs #17215. In the same spirit as 5de31cb8cb. 
tests/model_fields/models.py