code: def _get_flag(which, flags):
      
      res = [this for this in flags if this.is_equal(which)]
      if len(res) == 0:
          return None
      if len(res) == 1:
          return res[0]
      assert()
docs: Find 'which' entry in 'flags'.