docstr: if the graph_type chosen is not among the options available, raise error
docstr_tok: ["if","the","graph_type","chosen","is","not","among","the","options","available",",","raise","error"]
code: def test_raise_error_if_wrong_graph_type(self):
      """if the graph_type chosen is not among the options available, raise error"""
      with pytest.raises(
          ValueError,
          match=r"Unknown graph type some_type\. "
          r"Available types are \['erdos-renyi', 'barabasi-albert', 'full'\]",
      ):
          generate_structure_dynamic(
              10, 10, 10, 10, graph_type_intra="some_type"
          )
      with pytest.raises(
          ValueError,
          match=r"Unknown inter-slice graph type `some_type`\. "
          "Valid types are 'erdos-renyi' and 'full'",
      ):
          generate_structure_dynamic(
              10, 10, 10, 10, graph_type_inter="some_type"
          )
  
imports: import re
  import string
  from itertools import product
  import numpy
  import pandas
  import pytest
  from scipy import stats
  from sklearn.gaussian_process.kernels import RBF
  from causalnex.structure import StructureModel
  from causalnex.structure.data_generators import gen_stationary_dyn_net_and_df, generate_binary_data, generate_binary_dataframe, generate_categorical_dataframe, generate_continuous_data, generate_continuous_dataframe, generate_count_dataframe, generate_dataframe_dynamic, generate_structure, generate_structure_dynamic
  from tests.structure.data_generators.test_core import calculate_proba
label_desc: Use image node_id 5 for calling the TestGenerateStructureDynamic obj's underlying member method code with example usage: obj.test_raise_error_if_wrong_graph_type() without return types