code: def mask_dataset(path: str, dbname: str, mask: bool = True):
      """Mask one file in dataset. Blocks in masked datasets won't be read later.
  
      Args:
          path (str): path to dataset
          dbname (str): file name in this dataset which you want to mask
          mask (bool): True for mask, False for unmask
  
      Example:
          >>> mask_dataset("/path/to/dataset", "data_part_1", mask=True)
  
      """
  
      meta_path = os.path.join(path, "meta.bin")
  
      info: List[FileInfo] = []
      if os.path.exists(meta_path):
          info = _read_info_list(meta_path)
      else:
          raise ValueError("Dataset not exists")
  
      for v in info:
          if v.file_name == dbname:
              v.mask = mask
      _write_info_list(meta_path, info)
  
file_path: DeepKE/example/llm/CPM-Bee/src/cpm_live/dataset/utils.py
imports: import os
  import struct
  from typing import List, Optional
  from .distributed_dataset import SimpleDataset, build_dataset, _read_info_list, _write_info_list, _random_string, _DEFAULT_BLOCK_SIZE, FileInfo
  from .serializer import RawSerializer
  import random
  import shutil
label_desc: Use image node_id 3 for calling a global function with example usage: mask_dataset(path, dbname, mask) without return types