class_docstr: Box collection.
class_docstr_tok: ["Box","collection","."]
docstr: Sets the value of a field.
  
  Updates the field of a box_list with a given value.
  
  Args:
    field: (string) name of the field to set value.
    value: the value to assign to the field.
  
  Raises:
    ValueError: if the box_list does not have specified field.
docstr_tok: ["Sets","the","value","of","a","field",".","Updates","the","field","of","a","box_list","with","a","given","value",".","Args",":","field",":","(","string",")","name","of","the","field","to","set","value",".","value",":","the","value","to","assign","to","the","field",".","Raises",":","ValueError",":","if","the","box_list","does","not","have","specified","field","."]
code: def set_field(self, field, value):
      """Sets the value of a field.
  
      Updates the field of a box_list with a given value.
  
      Args:
        field: (string) name of the field to set value.
        value: the value to assign to the field.
  
      Raises:
        ValueError: if the box_list does not have specified field.
      """
      if not self.has_field(field):
          raise ValueError("field %s does not exist" % field)
      self.data[field] = value
  
file_path: DALI/docs/examples/use_cases/tensorflow/efficientdet/pipeline/anchors_utils/box_list.py
imports: import tensorflow.compat.v1
label_desc: Use image node_id 11 for calling the BoxList obj's underlying member method code with example usage: obj.set_field(field, value) without return types