code: def find_ready_matching(ready, flag):
      match = []
      for fd, mode in ready:
          if mode & flag:
              match.append(fd)
      return match
  
file_path: cpython/Lib/test/test_devpoll.py
imports: import os
  import random
  import select
  import unittest
  from test.support import cpython_only
label_desc: Use image node_id 1 for calling a global function with example usage: find_ready_matching(ready, flag) and returns: match