docstr: Test in1d's invert parameter
docstr_tok: ["Test","in1d","'s","invert","parameter"]
code: def test_in1d_invert(self, kind):
      "Test in1d's invert parameter"
      # We use two different sizes for the b array here to test the
      # two different paths in in1d().
      for mult in (1, 10):
          a = np.array([5, 4, 5, 3, 4, 4, 3, 4, 3, 5, 2, 1, 5, 5])
          b = [2, 3, 4] * mult
          assert_array_equal(
              np.invert(in1d(a, b, kind=kind)),
              in1d(a, b, invert=True, kind=kind),
          )
  
      # float:
      if kind in {None, "sort"}:
          for mult in (1, 10):
              a = np.array(
                  [5, 4, 5, 3, 4, 4, 3, 4, 3, 5, 2, 1, 5, 5],
                  dtype=np.float32,
              )
              b = [2, 3, 4] * mult
              b = np.array(b, dtype=np.float32)
              assert_array_equal(
                  np.invert(in1d(a, b, kind=kind)),
                  in1d(a, b, invert=True, kind=kind),
              )
  
imports: from unittest import skipIf
  import numpy
  from pytest import raises
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, subtest, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 11 for calling the TestSetOps obj's underlying member method code with example usage: obj.test_in1d_invert(kind) without return types