'Generates a MasterBuilder and TrainTarget based on a simple spec.'

def getBuilderAndTarget(self, test_name, master_spec_path='simple_parser_master_spec.textproto'):

    master_spec = self.LoadSpec(master_spec_path)
    hyperparam_config = spec_pb2.GridPoint()
    target = spec_pb2.TrainTarget()
    target.name = ('test-%s-train' % test_name)
    target.component_weights.extend(([0] * len(master_spec.component)))
    target.component_weights[(-1)] = 1.0
    target.unroll_using_oracle.extend(([False] * len(master_spec.component)))
    target.unroll_using_oracle[(-1)] = True
    builder = graph_builder.MasterBuilder(master_spec, hyperparam_config, pool_scope=test_name)
    return (builder, target)
