def bind_parameters(obj, substitutions, fields=None):
  if fields is None:
    fields = [ k for k in obj.__dict__.keys() if not k.startswith('_') ]

  for field in fields:
    data = getattr(obj, field)
    if isinstance(data, basestring):
      new_data = Template(data).safe_substitute(substitutions)
      if new_data != data:
        LOG.debug("Parameterized %s -> %s" % (repr(data), repr(new_data)))
        setattr(obj, field, new_data)
A dict of the configured Splits keyed by their names.
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/parameterization.py/bind_parameters--crossover with--dataset/ETHPy150Open jsirois/sapling/saplib/config.py/Config.splits