parameters: (ops, control_inputs=False, control_outputs=None,
                  control_ios=None)
return_statement: return res
docstring: Return all the `tf.Operation` which are connected to an op in ops.
  
    Args:
      ops: an object convertible to a list of `tf.Operation`.
      control_inputs: A boolean indicating whether control inputs are enabled.
      control_outputs: An instance of `util.ControlOutputs` or `None`. If not
        `None`, control outputs are enabled.
      control_ios:  An instance of `util.ControlOutputs` or `None`. If not `None`,
        both control inputs and control outputs are enabled. This is equivalent to
        set `control_inputs` to `True` and `control_outputs` to the
        `util.ControlOutputs` instance.
    Returns:
      All the `tf.Operation` surrounding the given ops.
    Raises:
      TypeError: if `ops` cannot be converted to a list of `tf.Operation`.
docstring_summary: Return all the `tf.Operation` which are connected to an op in ops.
docstring_tokens: Return all the tf . Operation which are connected to an op in ops .
function: def get_ops_ios(ops, control_inputs=False, control_outputs=None,
                  control_ios=None):
    """Return all the `tf.Operation` which are connected to an op in ops.
  
    Args:
      ops: an object convertible to a list of `tf.Operation`.
      control_inputs: A boolean indicating whether control inputs are enabled.
      control_outputs: An instance of `util.ControlOutputs` or `None`. If not
        `None`, control outputs are enabled.
      control_ios:  An instance of `util.ControlOutputs` or `None`. If not `None`,
        both control inputs and control outputs are enabled. This is equivalent to
        set `control_inputs` to `True` and `control_outputs` to the
        `util.ControlOutputs` instance.
    Returns:
      All the `tf.Operation` surrounding the given ops.
    Raises:
      TypeError: if `ops` cannot be converted to a list of `tf.Operation`.
    """
    control_inputs, control_outputs = check_cios(control_inputs, control_outputs,
                                                 control_ios)
    ops = util.make_list_of_op(ops)
    res = []
    for op in ops:
      util.concatenate_unique(res, [t.op for t in op.inputs])
      for t in op.outputs:
        util.concatenate_unique(res, t.consumers())
      if control_outputs is not None:
        util.concatenate_unique(res, control_outputs.get(op))
      if control_inputs:
        util.concatenate_unique(res, op.control_inputs)
    return res
function_tokens: def get_ops_ios ( ops , control_inputs = False , control_outputs = None , control_ios = None ) : control_inputs , control_outputs = check_cios ( control_inputs , control_outputs , control_ios ) ops = util . make_list_of_op ( ops ) res = [ ] for op in ops : util . concatenate_unique ( res , [ t . op for t in op . inputs ] ) for t in op . outputs : util . concatenate_unique ( res , t . consumers ( ) ) if control_outputs is not None : util . concatenate_unique ( res , control_outputs . get ( op ) ) if control_inputs : util . concatenate_unique ( res , op . control_inputs ) return res