docstr: Return list of ops with name matching `prefix` if specified, and
  op_type, if specified. At least one of {prefix, op_type} must be
  specified.
  
  If `exactly_one` == True, raise ValueError if we find <1 or >1 ops satisfying
  the criteria.
  
  prefix: str
  
  Return list[Operation]. Empty list if no op satisfies.
docstr_tok: ["Return","list","of","ops","with","name","matching","`","prefix","`","if","specified",",","and","op_type",",","if","specified",".","At","least","one","of","{","prefix",",","op_type","}","must","be","specified",".","If","`","exactly_one","`","==","True",",","raise","ValueError","if","we","find","<","1","or",">","1","ops","satisfying","the","criteria",".","prefix",":","str","Return","list","[","Operation","]",".","Empty","list","if","no","op","satisfies","."]
code: def find_ops(self, prefix=None, op_type=None, exactly_one=False):
      """
      Return list of ops with name matching `prefix` if specified, and
      op_type, if specified. At least one of {prefix, op_type} must be
      specified.
  
      If `exactly_one` == True, raise ValueError if we find <1 or >1 ops satisfying
      the criteria.
  
      prefix: str
  
      Return list[Operation]. Empty list if no op satisfies.
      """
      found_ops = []
      for f_name, f in self.functions.items():
          found_ops.extend(f.find_ops(prefix=prefix, op_type=op_type))
      if exactly_one and len(found_ops) != 1:
          msg = "Found matching ops not exactly one. Found ops: {}"
          raise ValueError(msg.format(found_ops))
      return found_ops
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import logging
  import numpy
  import sympy
  from .None import types
  from .block import Function
  from .var import Var
  from .types.symbolic import k_used_symbols, k_num_internal_syms
  from coremltools.converters.mil.input_types import InputType
label_desc: Use image node_id 5 for calling the Program obj's underlying member method code with example usage: obj.find_ops(prefix, op_type, exactly_one) and returns: found_ops