class_docstr: Replace label of specified images.
  
  Parameters
  ----------
  indices : Sequence[int]
      The indices of images to relabel.
  new_label : int
      The new label to assign.
class_docstr_tok: ["Replace","label","of","specified","images",".","Parameters","--","--","--","--","--","indices",":","Sequence","[","int","]","The","indices","of","images","to","relabel",".","new_label",":","int","The","new","label","to","assign","."]
code: def declare_state_and_memory(
      self, previous_state: State
  ) -> Tuple[State, Optional[AllocationQuery]]:
      return (replace(previous_state, jit_mode=True), None)
  
file_path: ffcv/ffcv/transforms/replace_label.py
imports: from typing import Tuple
  import numpy
  from dataclasses import replace
  from typing import Callable, Optional, Tuple
  from ..pipeline.allocation_query import AllocationQuery
  from ..pipeline.operation import Operation
  from ..pipeline.state import State
  from ..pipeline.compiler import Compiler
label_desc: Use image node_id 3 for calling the ReplaceLabel obj's underlying member method code with example usage: obj.declare_state_and_memory(previous_state) and returns: replace,  None