code: def chooseValueAndAppend(instance, population, weights):
      """Choose a random value from the population using weights list and append it to the passed instance"""
      val = choices(population, weights)
      instance.append(val[0])
  
file_path: AIX360/aix360/data/ted_data/GenerateData.py
imports: import random
  from random import choices
  import pandas
label_desc: Use image node_id 7 for calling a global function with example usage: chooseValueAndAppend(instance, population, weights) without return types