class_docstr: Result of causal analysis.
class_docstr_tok: ["Result","of","causal","analysis","."]
code: def _get_policy_object(self, policy):
      policy_object = CausalPolicy()
      policy_object.treatment_feature = policy[
          ResultAttributes.TREATMENT_FEATURE
      ]
      policy_object.control_treatment = policy[
          ResultAttributes.CONTROL_TREATMENT
      ]
      policy_object.local_policies = self._get_local_policies_object(
          policy[ResultAttributes.LOCAL_POLICIES]
      )
      policy_object.policy_gains = self._get_policy_gains_object(
          policy[ResultAttributes.POLICY_GAINS]
      )
      policy_object.policy_tree = self._get_policy_tree_object(
          policy[ResultAttributes.POLICY_TREE]
      )
      return policy_object
  
imports: import json
  import re
  import uuid
  from pathlib import Path
  from typing import Any, List, Optional, Tuple, Union
  import pandas
  import semver
  from responsibleai._interfaces import CausalConfig
  from responsibleai._interfaces import CausalData, CausalPolicy, CausalPolicyGains, CausalPolicyTreeInternal, CausalPolicyTreeLeaf, ComparisonTypes
  from responsibleai._internal.constants import FileFormats, SerializationAttributes
  from responsibleai._tools.causal.causal_config import CausalConfig
  from responsibleai._tools.causal.causal_constants import ResultAttributes
  from responsibleai._tools.shared.base_result import BaseResult
  from responsibleai._tools.shared.versions import CausalVersions
label_desc: Use image node_id 11 for calling the CausalResult obj's underlying member method code with example usage: obj._get_policy_object(policy) and returns: policy_object