class_docstr: Base Sample class to hold the necessary info and provide atomic operations
class_docstr_tok: ["Base","Sample","class","to","hold","the","necessary","info","and","provide","atomic","operations"]
docstr: Fully replace single field and return new sample.
  Notice: Not suggest use this API as it will set mask values of
  TextField to MODIFIED_MASK.
  
  :param str field: field str
  :param field_value: field_type
  :param list field_mask: indicate mask value of field
  :return: Modified Sample
docstr_tok: ["Fully","replace","single","field","and","return","new","sample",".","Notice",":","Not","suggest","use","this","API","as","it","will","set","mask","values","of","TextField","to","MODIFIED_MASK",".",":","param","str","field",":","field","str",":","param","field_value",":","field_type",":","param","list","field_mask",":","indicate","mask","value","of","field",":","return",":","Modified","Sample"]
code: def replace_field(self, field, field_value, field_mask=None):
      r"""
      Fully replace single field and return new sample.
      Notice: Not suggest use this API as it will set mask values of
      TextField to MODIFIED_MASK.
  
      :param str field: field str
      :param field_value: field_type
      :param list field_mask: indicate mask value of field
      :return: Modified Sample
  
      """
      fields_mask = [field_mask] if field_mask else None
  
      return self.replace_fields([field], [field_value], fields_mask)
  
imports: import copy
  from abc import ABC, abstractmethod
  from ..field import ListField, TextField
  from ....common.settings import MODIFIED_MASK
  from ....common.preprocess.en_processor import EnProcessor
label_desc: Use image node_id 11 for calling the Sample obj's underlying member method code with example usage: obj.replace_field(field, field_value, field_mask) and returns: self