class_docstr: A simple perturbation that replaces existing spaces with 0-max_spaces spaces (thus potentially merging words).
code: def perturb(self, text: str, rng: Random) -> str:
      # Replace each space with a random number of spaces
      return re.sub(
          r" +", lambda x: " " * rng.randint(1, self.max_spaces), text
      )
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/augmentations/space_perturbation.py
imports: from dataclasses import dataclass
  from random import Random
  import re
  from .perturbation import Perturbation
  from .perturbation_description import PerturbationDescription
label_desc: Use image node_id 3 for calling the SpacePerturbation obj's underlying member method code with example usage: obj.perturb(text, rng) and returns: re