docs: def fixtures():
      """Command for working with test data."""
      temp_path = os.path.join(os.path.dirname(__file__), 'temp')
      demo_files_path = os.path.join(os.path.dirname(__file__), 'demo_files')
  
      # Create location
      loc = Location(name='local', uri=temp_path, default=True)
      db.session.add(loc)
      db.session.commit()
  
      # Example files from the data folder
      demo_files = (
          'markdown.md',
          'csvfile.csv',
          'zipfile.zip',
          'jsonfile.json',
          'xmlfile.xml',
          'notebook.ipynb',
          'jpgfile.jpg',
          'pngfile.png',
      )
  
      rec_uuid = uuid4()
      provider = RecordIdProvider.create(object_type='rec', object_uuid=rec_uuid)
      data = {
          'pid_value': provider.pid.pid_value,
      }
  
      record = Record.create(data, id_=rec_uuid)
      bucket = Bucket.create()
      RecordsBuckets.create(record=record.model, bucket=bucket)
  
      # Add files to the record
      for f in demo_files:
          with open(os.path.join(demo_files_path, f), 'rb') as fp:
              record.files[f] = fp
  
      record.files.flush()
      record.commit()
      db.session.commit()