'Returns attrs based on the |defaults| and one |key|,|value| override.'

def MakeAttrs(self, defaults, key=None, value=None):

    spec = spec_pb2.RegisteredModuleSpec()
    if (key and value):
        spec.parameters[key] = value
    return network_units.get_attrs_with_defaults(spec.parameters, defaults)
