code: def read_gold_standard_blocks_file(data_dir, fileroot, split_blocks=True):
      
      fname = os.path.join(
          data_dir, GOLD_STANDARD_BLOCKS_DIRNAME, fileroot + GOLD_STANDARD_BLOCKS_EXT)
      with io.open(fname, mode='r') as f:
          data = f.read()
      if split_blocks:
          return filter(None, data[:-1].split('\n'))
      return filter(None, data)
docs: Read the gold standard blocks file corresponding to identifier ``fileroot``
      in the gold standard blocks directory below the root ``data_dir``.
  
      Args:
          data_dir (str)
          fileroot (str)
          split_blocks (bool): If True, split the file's content into blocks.
  
      Returns:
          str or List[str]