code: def test_pxconfig(self):
      ip = get_ipython()
      rc = self.client
      v = rc.activate(-1, "_tst")
      assert v.targets == rc.ids[-1]
      ip.run_line_magic("pxconfig_tst", "-t :")
      assert v.targets == rc.ids
      ip.run_line_magic("pxconfig_tst", "-t ::2")
      assert v.targets == rc.ids[::2]
      ip.run_line_magic("pxconfig_tst", "-t 1::2")
      assert v.targets == rc.ids[1::2]
      ip.run_line_magic("pxconfig_tst", "-t 1")
      assert v.targets == 1
      ip.run_line_magic("pxconfig_tst", "--block")
      assert v.block == True
      ip.run_line_magic("pxconfig_tst", "--noblock")
      assert v.block == False
  
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 18 for calling the TestParallelMagics obj's underlying member method code with example usage: obj.test_pxconfig() without return types