docs: def generate_fixtures(datasets, reuses):
      '''Build sample fixture data (users, datasets and reuses).'''
      user = UserFactory()
      log.info('Generated user "{user.email}".'.format(user=user))
  
      organization = OrganizationFactory(members=[Member(user=user)])
      log.info('Generated organization "{org.name}".'.format(org=organization))
  
      for _ in range(datasets):
          dataset = VisibleDatasetFactory(organization=organization)
          DiscussionFactory(subject=dataset, user=user)
          ReuseFactory.create_batch(reuses, datasets=[dataset], owner=user)
  
      msg = 'Generated {datasets} dataset(s) with {reuses} reuse(s) each.'
      log.info(msg.format(**locals()))