docstr: Test EM with invalid priors type
docstr_tok: ["Test","EM","with","invalid","priors","type"]
code: def test_invalid_priors(self, priors):
      """Test EM with invalid priors type"""
      with pytest.raises(ValueError, match=r"Invalid priors *"):
          df, sm, node_states, _ = naive_bayes_plus_parents()
          EMSingleLatentVariable(
              data=df,
              sm=sm,
              node_states=node_states,
              lv_name="z",
              priors=priors,
          )
  
imports: from collections import Counter
  from typing import Any, AnyStr, Dict, Iterable, List, Set, Tuple, Union
  import numpy
  import pandas
  import pytest
  from causalnex.estimator.em import EMSingleLatentVariable
  from causalnex.network import BayesianNetwork
  from causalnex.structure.structuremodel import StructureModel
  from causalnex.utils.data_utils import states_to_df
label_desc: Use image node_id 5 for calling the TestPriors obj's underlying member method code with example usage: obj.test_invalid_priors(priors) without return types