code: def test_discrete_network(self):
      for model in {self.alarm, self.alarm_no_cpd}:
          for scoring_method in {"k2", "bdeu", "bds", "bic"}:
              metric = structure_score(
                  self.alarm, self.data, scoring_method
              )
              self.assertTrue(isinstance(metric, float))
          for scoring_method in {"bdeu", "bds"}:
              metric = structure_score(
                  self.alarm,
                  self.data,
                  scoring_method,
                  equivalent_sample_size=10,
              )
              self.assertTrue(isinstance(metric, float))
  
file_path: pgmpy/pgmpy/tests/test_metrics/test_metrics.py
imports: import unittest
  import pandas
  from sklearn.metrics import accuracy_score, f1_score
  from pgmpy.metrics import correlation_score, log_likelihood_score, structure_score
  from pgmpy.utils import get_example_model
label_desc: Use image node_id 2 for calling the TestStructureScore obj's underlying member method code with example usage: obj.test_discrete_network() without return types