def METHOD_NAME(self, kwargs):
    self.task_config.options["api_names"] = "dummy"
    super().METHOD_NAME(kwargs)
    self.api_names = {
        self._inject_namespace(elem["api_name"])
        for elem in self.options["org_wide_defaults"]
    }
    self.options["timeout"] = int(self.options.get("timeout", 600))
    self.owds = {}
    for elem in self.options["org_wide_defaults"]:
        if "api_name" not in elem or (
            "internal_sharing_model" not in elem
            and "external_sharing_model" not in elem
        ):
            raise TaskOptionsError(
                "The object api_name and at least one of "
                "internal_sharing_model and external_sharing_model is required."
            )
        valid_sharing_models = [
            "ControlledByParent",
            "ControlledByCampaign",
            "ControlledByLeadOrContact",
            "FullAccess",
            "ReadWriteTransfer",
            "ReadWrite",
            "Read",
            "Private",
            "ControlledByParent",
            None,
        ]
        if (
            elem.get("internal_sharing_model") not in valid_sharing_models
            or elem.get("external_sharing_model") not in valid_sharing_models
        ):
            raise TaskOptionsError(
                f"The sharing model specified for {elem['api_name']} is not a valid option."
            )
        self.owds[self._inject_namespace(elem["api_name"])] = {
            "internal_sharing_model": elem.get("internal_sharing_model"),
            "external_sharing_model": elem.get("external_sharing_model"),
        }