class_docstr: A class representing a flag, which must be constant across all instances in a batch.
  This will be passed to a `forward` method as a single value of whatever type you pass in.
class_docstr_tok: ["A","class","representing","a","flag",",","which","must","be","constant","across","all","instances","in","a","batch",".","This","will","be","passed","to","a","`","forward","`","method","as","a","single","value","of","whatever","type","you","pass","in","."]
code: def __init__(self, flag_value: Any) -> None:
      self.flag_value = flag_value
  
file_path: allennlp/allennlp/data/fields/flag_field.py
imports: from typing import Any, Dict, List
  from allennlp.data.fields.field import Field
label_desc: Use image node_id 1 to create a new FlagField object from inherited base classes: Field with example: obj = FlagField(flag_value)