code: def test_swap_field_at_index(self):
      self.assertRaises(
          TypeError, sample.swap_field_at_index, "x", 1, "我"
      )
      self.assertRaises(
          ValueError, sample.swap_field_at_index, "x", 1, 100
      )
  
      new_sample = sample.swap_field_at_index("x", 0, 5)
      self.assertEqual("好天天气很今。", new_sample.get_text("x"))
      self.assertEqual([2, 0, 0, 0, 0, 2, 0], new_sample.get_mask("x"))
  
imports: import unittest
  from textflint.input.component.sample.utcn_sample import *
label_desc: Use image node_id 17 for calling the TestUTCnSample obj's underlying member method code with example usage: obj.test_swap_field_at_index() without return types