class_docstr: 经过处理的数据信息，包括一系列数据集（比如：分开的训练集、验证集和测试集）以及各个 field 对应的 vocabulary。该对象一般由
  **fastNLP** 中各种 :class:`~fastNLP.io.loader.Loader` 的 :meth:`load` 函数生成，可以通过以下的方法获取里面的内容::
  
      data_bundle = YelpLoader().load({'train':'/path/to/train', 'dev': '/path/to/dev'})
      train_vocabs = data_bundle.vocabs['train']
      train_data = data_bundle.datasets['train']
      dev_data = data_bundle.datasets['train']
  
  :param vocabs: 从名称（字符串）到 :class:`~fastNLP.core.Vocabulary` 类型的字典
  :param datasets: 从名称（字符串）到 :class:`~fastNLP.core.dataset.DataSet` 类型的字典。建议不要将相同的 ``DataSet`` 对象重复传入，
      否则可能会在使用 :class:`~fastNLP.io.pipe.Pipe` 处理数据的时候遇到问题，若多个数据集确需一致，请手动 ``deepcopy`` 后传入。
docstr: 删除某些 Instance。 需要注意的是 ``func`` 接受一个 Instance ，返回 bool 值。返回值为 ``True`` 时，
  该 Instance 会被移除或者不会包含在返回的 DataBundle 中。
  
  :param func: 接受一个 Instance 作为参数，返回 bool 值。为 ``True`` 时删除该 instance
  :param inplace: 是否在当前 DataBundle 中直接删除 instance；如果为 False，将返回一个新的 DataBundle。
  
  :return: DataSet
docstr_tok: ["\u5220\u9664\u67d0\u4e9b","Instance\u3002","\u9700\u8981\u6ce8\u610f\u7684\u662f","``","func","``","\u63a5\u53d7\u4e00\u4e2a","Instance","\uff0c\u8fd4\u56de","bool","\u503c\u3002\u8fd4\u56de\u503c\u4e3a","``","True","``","\u65f6\uff0c","\u8be5","Instance","\u4f1a\u88ab\u79fb\u9664\u6216\u8005\u4e0d\u4f1a\u5305\u542b\u5728\u8fd4\u56de\u7684","DataBundle","\u4e2d\u3002",":","param","func",":","\u63a5\u53d7\u4e00\u4e2a","Instance","\u4f5c\u4e3a\u53c2\u6570\uff0c\u8fd4\u56de","bool","\u503c\u3002\u4e3a","``","True","``","\u65f6\u5220\u9664\u8be5","instance",":","param","inplace",":","\u662f\u5426\u5728\u5f53\u524d","DataBundle","\u4e2d\u76f4\u63a5\u5220\u9664","instance\uff1b\u5982\u679c\u4e3a","False\uff0c\u5c06\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684","DataBundle\u3002",":","return",":","DataSet"]
code: def drop(self, func: Callable, inplace=True):
      r"""
      删除某些 Instance。 需要注意的是 ``func`` 接受一个 Instance ，返回 bool 值。返回值为 ``True`` 时，
      该 Instance 会被移除或者不会包含在返回的 DataBundle 中。
  
      :param func: 接受一个 Instance 作为参数，返回 bool 值。为 ``True`` 时删除该 instance
      :param inplace: 是否在当前 DataBundle 中直接删除 instance；如果为 False，将返回一个新的 DataBundle。
  
      :return: DataSet
      """
      if inplace:
          for name, dataset in self.datasets.items():
              dataset.drop(func, inplace)
          return self
      else:
          data_bundle = DataBundle(vocabs=self.vocabs)
          for name, dataset in self.datasets.items():
              res = dataset.drop(func, inplace)
              data_bundle.set_dataset(res, name)
          return data_bundle
  
imports: from typing import Union, List, Callable, Dict
  from ..core.dataset import DataSet
  from fastNLP.core.vocabulary import Vocabulary
  from fastNLP.core import logger
label_desc: Use image node_id 24 for calling the DataBundle obj's underlying member method code with example usage: obj.drop(func, inplace) and returns: self, data_bundle