parameters: (self, op_name)
return_statement: return res[0]
docstring: Return the op named op_name.
  
      Args:
        op_name: the name to search for
      Returns:
        The op named op_name.
      Raises:
        ValueError: if the op_name could not be found.
        AssertionError: if the name was found multiple time.
docstring_summary: Return the op named op_name.
docstring_tokens: Return the op named op_name .
function: def find_op_by_name(self, op_name):
      """Return the op named op_name.
  
      Args:
        op_name: the name to search for
      Returns:
        The op named op_name.
      Raises:
        ValueError: if the op_name could not be found.
        AssertionError: if the name was found multiple time.
      """
      res = [op for op in self._ops if op.name == op_name]
      if not res:
        raise ValueError("{} not in subgraph.".format(op_name))
      if len(res) > 1:
        raise AssertionError("More than 1 op named: {}!".format(op_name))
      return res[0]
function_tokens: def find_op_by_name ( self , op_name ) : res = [ op for op in self . _ops if op . name == op_name ] if not res : raise ValueError ( "{} not in subgraph." . format ( op_name ) ) if len ( res ) > 1 : raise AssertionError ( "More than 1 op named: {}!" . format ( op_name ) ) return res [ 0 ]