  import random
  import tempfile
  
  from django.core.files.storage import FileSystemStorage
  from django.db import models
  
  
 
</s>
from pathlib import Path
  import random
  import tempfile
from pathlib import Path
  
  from django.core.files.storage import FileSystemStorage
  from django.db import models
  
  
keep add keep keep keep keep keep
 Refs #28428 -- Added test for a callable FileField.upload_to that returns pathlib.Path.
tests/file_storage/models.py