class_docstr: Box collection.
class_docstr_tok: ["Box","collection","."]
docstr: Accesses a box collection and associated fields.
  
  This function returns specified field with object; if no field is specified,
  it returns the box coordinates.
  
  Args:
    field: this optional string parameter can be used to specify
      a related field to be accessed.
  
  Returns:
    a tensor representing the box collection or an associated field.
  
  Raises:
    ValueError: if invalid field
docstr_tok: ["Accesses","a","box","collection","and","associated","fields",".","This","function","returns","specified","field","with","object",";","if","no","field","is","specified",",","it","returns","the","box","coordinates",".","Args",":","field",":","this","optional","string","parameter","can","be","used","to","specify","a","related","field","to","be","accessed",".","Returns",":","a","tensor","representing","the","box","collection","or","an","associated","field",".","Raises",":","ValueError",":","if","invalid","field"]
code: def get_field(self, field):
      """Accesses a box collection and associated fields.
  
      This function returns specified field with object; if no field is specified,
      it returns the box coordinates.
  
      Args:
        field: this optional string parameter can be used to specify
          a related field to be accessed.
  
      Returns:
        a tensor representing the box collection or an associated field.
  
      Raises:
        ValueError: if invalid field
      """
      if not self.has_field(field):
          raise ValueError("field " + str(field) + " does not exist")
      return self.data[field]
  
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 10 for calling the BoxList obj's underlying member method code with example usage: obj.get_field(field) and returns: self