def METHOD_NAME(targets, target_weights):
  """Select a fuzz target from a list of potential targets."""
  assert targets
  weighted_targets = []
  for target in targets:
    weight = target_weights.get(target, 1.0)
    weighted_targets.append(WeightedTarget(target, weight))
  return utils.random_weighted_choice(weighted_targets).target