code: def _check_local_policies(local_policies, is_serialized=False):
      # Required for individualized_policy bug in EconML version 0.12.0b2
      if local_policies is None:
          return
  
      if is_serialized:
          assert isinstance(local_policies, list)
      else:
          assert isinstance(local_policies, pd.DataFrame)
  
imports: import numpy
  import pandas
  import pytest
  from econml.solutions.causal_analysis._causal_analysis import CausalAnalysis
  from raiutils.exceptions import UserConfigValidationException
  from raiutils.models import ModelTask
  from responsibleai._interfaces import CausalConfig, CausalData, CausalPolicy, CausalPolicyGains, CausalPolicyTreeInternal, CausalPolicyTreeLeaf
  from responsibleai._internal.constants import CausalManagerKeys, ListProperties, ManagerNames
  from responsibleai._tools.causal.causal_result import CausalResult
label_desc: Use image node_id 12 for calling a global function with example usage: _check_local_policies(local_policies, is_serialized) without return types