code: def set_user_type(samples, user_type):
      for sample in samples:
          sample["user_type"] = user_type
      return samples
  
file_path: ParlAI/parlai/tasks/safety_mix/build.py
imports: import copy
  import hashlib
  import json
  import os
  import random
  import numpy
  import parlai.core.build_data
  import parlai.utils.logging
  from parlai.core.build_data import DownloadableFile
label_desc: Use image node_id 6 for calling a global function with example usage: set_user_type(samples, user_type) and returns: samples