def METHOD_NAME(self, dispatch_table):
    for ancestor_class in self._loky_pickler_cls.mro():
        dt_attribute = getattr(ancestor_class, "dispatch_table", None)
        if isinstance(dt_attribute, types.MemberDescriptorType):
            # Ancestor class (typically _pickle.Pickler) has a
            # member_descriptor for its "dispatch_table" attribute. Use
            # it to set the dispatch_table as a member instead of a
            # dynamic attribute in the __dict__ of the instance,
            # otherwise it will not be taken into account by the C
            # implementation of the dump method if a subclass defines a
            # class-level dispatch_table attribute as was done in
            # cloudpickle 1.6.0:
            # https://github.com/joblib/loky/pull/260
            dt_attribute.__set__(self, dispatch_table)
            break
    # On top of member descriptor set, also use setattr such that code
    # that directly access self.dispatch_table gets a consistent view
    # of the same table.
    self.dispatch_table = dispatch_table