code: def most_common_bw_pattern(arr, most_common):
      if len(arr) == 1:
          # print("Empty")
          return []
      else:
          res = [
              (arr[i], arr[i + 1])
              for i in range(0, len(arr) - 1, 2)
              if arr[i] + arr[i + 1] == most_common
          ]
  
          if len(arr) % 2 == 1 and arr[-2] + arr[-1] == most_common:
              res.append((arr[-2], arr[-1]))
          # print(res)
          return res
  
imports: import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: most_common_bw_pattern(arr, most_common) and returns: list, res