code: def test_apply_progress_bar(self):
      import time
  
      ds = DataSet({"x": [[1, 2, 3, 4]] * 400, "y": [[5, 6]] * 400})
  
      def do_nothing(ins):
          time.sleep(0.01)
  
      ds.apply(do_nothing, progress_bar="rich", num_proc=0)
      ds.apply_field(do_nothing, field_name="x", progress_bar="rich")
  
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 16 for calling the TestDataSetMethods obj's underlying member method code with example usage: obj.test_apply_progress_bar() without return types