code: def _dump_part_config(part_config, part_metadata):
      """Format and dump part config."""
      part_metadata = _format_part_metadata(
          part_metadata, _etype_tuple_to_str
      )
      with open(part_config, "w") as outfile:
          json.dump(part_metadata, outfile, sort_keys=False, indent=4)
  
imports: import json
  import logging
  import os
  import time
  import numpy
  import torch
  from ..None import backend
  from ..base import DGLError, EID, ETYPE, NID, NTYPE
  from ..convert import to_homogeneous
  from ..data.utils import load_graphs, load_tensors, save_graphs, save_tensors
  from ..partition import get_peak_mem, metis_partition_assignment, partition_graph_with_halo
  from ..random import choice
  from ..transforms import sort_csc_by_tag, sort_csr_by_tag
  from .constants import DEFAULT_ETYPE, DEFAULT_NTYPE
  from .graph_partition_book import _etype_str_to_tuple, _etype_tuple_to_str, RangePartitionBook
label_desc: Use image node_id 3 for calling a global function with example usage: _dump_part_config(part_config, part_metadata) without return types