code: def test_rename_field(self):
      ds = DataSet({"x": [[1, 2, 3, 4]] * 10, "y": [[5, 6]] * 10})
      ds.rename_field("x", "xx")
      assert ("xx" in ds) == True
      assert ("x" in ds) == False
  
      with pytest.raises(KeyError):
          ds.rename_field("yyy", "oo")
  
imports: import os
  import pytest
  import numpy
  from fastNLP.core.dataset import DataSet, FieldArray, Instance, ApplyResultException
  from fastNLP import logger
label_desc: Use image node_id 21 for calling the TestDataSetMethods obj's underlying member method code with example usage: obj.test_rename_field() without return types