def __init__(self) -> None: self.function_desc = FunctionDesc()
def _CloneFunctionDesc(func_desc, job_func): new_func_desc = FunctionDesc(job_func=job_func) new_func_desc.job_config_proto.CopyFrom(func_desc.job_config_proto) new_func_desc.function_attribute = copy.deepcopy( func_desc.function_attribute) return new_func_desc