def setObsoletedByResponse(
        self, pid, obsoletedByPid, serialVersion, vendorSpecific=None
    ):
        """CNCore.setObsoletedBy(session, pid, obsoletedByPid, serialVersion) → boolean
        https://releases.dataone.org/online/api-
        documentation-v2.0.1/apis/CN_APIs.html#CNCore.setObsoletedBy.

        Args:
          pid:
          obsoletedByPid:
          serialVersion:
          vendorSpecific:

        Returns:

        """
        mmp_dict = {
            'obsoletedByPid': obsoletedByPid,
            'serialVersion': str(serialVersion),
        }
        return self.PUT(['obsoletedBy', pid], fields=mmp_dict, headers=vendorSpecific)
CNCore.setObsoletedBy(session, pid, obsoletedByPid, serialVersion) → boolean
        https://releases.dataone.org/online/api-
        documentation-v2.0.1/apis/CN_APIs.html#CNCore.setObsoletedBy.

        Args:
          pid:
          obsoletedByPid:
          serialVersion:
          vendorSpecific:

        Returns: