code: def check_device(rule, target):
      for rule_item in rule:
          if rule_item not in target:
              return False
      return True
  
file_path: scikit-learn-intelex/tests/run_examples.py
imports: import argparse
  import os
  import struct
  import subprocess
  import sys
  from collections import defaultdict
  from os.path import join
  from time import gmtime, strftime
  from daal4py import __has_dist__
  from daal4py.sklearn._utils import get_daal_version
label_desc: Use image node_id 2 for calling a global function with example usage: check_device(rule, target) and returns: True, False