import collections


def graph_inputs(name, **kwargs):
    """Creates a namedtuple of the given keys and values.

    Args:
        name (string): Name of the tuple.
        kwargs (tf.Tensor): One or more tensor(s) to add to the
            namedtuple's values. The parameter names are used as keys
            in the namedtuple. Ex. obs1=tensor1, obs2=tensor2.

    Returns:
        tuple: namedtuple containing the collection of variables passed.
    """
    Singleton = collections.namedtuple(name, kwargs.keys())

    return Singleton(**kwargs)