def TransformString(self, variable, s, policy):
    name = self.ApplyCaseTransform(s, policy)
    if policy.format_string:
      name = self.ApplyFormat(variable, name, policy)

    if name.lower() in self.reserved_words:
      if policy.conflict_policy:
        return self.TransformString(variable, s, policy.conflict_policy)
      else:
        return name + '__'  # Ugly, but works everywhere.
    return name
Applies the transforms of a naming policy to a string.
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/language_model.py/LanguageModel.TransformString