code: def huang_darwiche_moralized(huang_darwiche_dag):
      dag = huang_darwiche_dag
      gu = make_undirected_copy(dag)
      gm = make_moralized_copy(gu, dag)
  
      return gm
  
file_path: causalnex/tests/ebaybbn/conftest.py
imports: import pytest
  from causalnex.ebaybbn import BBN, Node, build_bbn, build_join_tree, combinations, make_moralized_copy, make_undirected_copy
  from causalnex.ebaybbn.utils import make_key
label_desc: Use image node_id 5 for calling a global function with example usage: huang_darwiche_moralized(huang_darwiche_dag) and returns: gm