class_docstr: Instruction to read a single shard/file.
  
  Attributes:
    filename: The filename including the path.
    skip: Indicates which example read in the shard (`ds.skip().take()`). `0` if
      no skipping.
    take: Indicates how many examples to read (`-1` to read all). If `-1`, then
      `take` is overridden with the number of examples to read is calculated.
    examples_in_shard: The total number of examples in the shard. To get the
      number of examples to read, use `take`.
    takes_all: whether all examples after skipping are read.
class_docstr_tok: ["Instruction","to","read","a","single","shard\/file",".","Attributes",":","filename",":","The","filename","including","the","path",".","skip",":","Indicates","which","example","read","in","the","shard","(","`","ds.skip","(",")",".take","(",")","`",")",".","`","0","`","if","no","skipping",".","take",":","Indicates","how","many","examples","to","read","(","`","-1","`","to","read","all",")",".","If","`","-1","`",",","then","`","take","`","is","overridden","with","the","number","of","examples","to","read","is","calculated",".","examples_in_shard",":","The","total","number","of","examples","in","the","shard",".","To","get","the","number","of","examples","to","read",",","use","`","take","`",".","takes_all",":","whether","all","examples","after","skipping","are","read","."]
code: def replace(self, **kwargs: Any) -> FileInstruction:
      return dataclasses.replace(self, **kwargs)
  
file_path: datasets/tensorflow_datasets/core/utils/shard_utils.py
imports: from __future__ import annotations
  import dataclasses
  import math
  import os
  from typing import Any, List, Optional, Sequence
label_desc: Use image node_id 5 for calling the FileInstruction obj's underlying member method code with example usage: obj.replace() and returns: dataclasses