class_docstr: Base class for LIT datasets.
docstr: Return a copy of this dataset with some fields renamed.
docstr_tok: ["Return","a","copy","of","this","dataset","with","some","fields","renamed","."]
code: def remap(self, field_map: Mapping[str, str]):
      """Return a copy of this dataset with some fields renamed."""
      new_spec = utils.remap_dict(self.spec(), field_map)
      new_examples = [
          utils.remap_dict(ex, field_map) for ex in self.examples
      ]
      return Dataset(new_spec, new_examples, base=self)
  
imports: from collections.abc import Callable, Mapping, Sequence
  import hashlib
  import glob
  import inspect
  import os
  import random
  import types
  from typing import Optional, Union, cast
  from absl import logging
  from lit_nlp.api import types
  from lit_nlp.lib import serialize
  from lit_nlp.lib import utils
label_desc: Use image node_id 13 for calling the Dataset obj's underlying member method code with example usage: obj.remap(field_map) and returns: Dataset