parameters: (index, queues)
return_statement: return QueueBase(dtypes=dtypes, shapes=None, names=names,
                       queue_ref=selected_queue)
docstring: Create a queue using the queue reference from `queues[index]`.
  
      Args:
        index: An integer scalar tensor that determines the input that gets
          selected.
        queues: A list of `QueueBase` objects.
  
      Returns:
        A `QueueBase` object.
  
      Raises:
        TypeError: When `queues` is not a list of `QueueBase` objects,
          or when the data types of `queues` are not all the same.
docstring_summary: Create a queue using the queue reference from `queues[index]`.
docstring_tokens: Create a queue using the queue reference from queues [ index ] .
function: def from_list(index, queues):
      """Create a queue using the queue reference from `queues[index]`.
  
      Args:
        index: An integer scalar tensor that determines the input that gets
          selected.
        queues: A list of `QueueBase` objects.
  
      Returns:
        A `QueueBase` object.
  
      Raises:
        TypeError: When `queues` is not a list of `QueueBase` objects,
          or when the data types of `queues` are not all the same.
      """
      if ((not queues) or
          (not isinstance(queues, list)) or
          (not all(isinstance(x, QueueBase) for x in queues))):
        raise TypeError("A list of queues expected")
  
      dtypes = queues[0].dtypes
      if not all([dtypes == q.dtypes for q in queues[1:]]):
        raise TypeError("Queues do not have matching component dtypes.")
  
      names = queues[0].names
      if not all([names == q.names for q in queues[1:]]):
        raise TypeError("Queues do not have matching component names.")
  
      queue_refs = [x.queue_ref for x in queues]
      selected_queue = control_flow_ops.ref_select(index, queue_refs)
      # TODO(josh11b): Unify the shapes of the queues too?
      return QueueBase(dtypes=dtypes, shapes=None, names=names,
                       queue_ref=selected_queue)
function_tokens: def from_list ( index , queues ) : if ( ( not queues ) or ( not isinstance ( queues , list ) ) or ( not all ( isinstance ( x , QueueBase ) for x in queues ) ) ) : raise TypeError ( "A list of queues expected" ) dtypes = queues [ 0 ] . dtypes if not all ( [ dtypes == q . dtypes for q in queues [ 1 : ] ] ) : raise TypeError ( "Queues do not have matching component dtypes." ) names = queues [ 0 ] . names if not all ( [ names == q . names for q in queues [ 1 : ] ] ) : raise TypeError ( "Queues do not have matching component names." ) queue_refs = [ x . queue_ref for x in queues ] selected_queue = control_flow_ops . ref_select ( index , queue_refs ) # TODO(josh11b): Unify the shapes of the queues too? return QueueBase ( dtypes = dtypes , shapes = None , names = names , queue_ref = selected_queue )