code: def _check_expected_lines_unordered(self, expected, lines):
      for expect in expected:
          found = False
          for line in lines:
              found = found | (re.search(expect, line) is not None)
              if found:
                  break
          assert found, f"Expected {expect!r} in output: {lines}"
  
imports: import re
  import signal
  import sys
  import time
  import pytest
  from IPython import get_ipython
  from IPython.utils.io import capture_output
  import ipyparallel
  from ipyparallel import AsyncResult
  from .clienttest import ClusterTestCase, generate_output, raises_remote
label_desc: Use image node_id 5 for calling the TestParallelMagics obj's underlying member method code with example usage: obj._check_expected_lines_unordered(expected, lines) without return types