code: def verify_partition_formats(part_g, formats):
      """Validate the partitioned graphs with supported formats
  
      Parameters:
      -----------
      part_g : DGL Graph object
          created for the partitioned graphs
      formats : string
          formats(csc, coo, csr) supported formats and multiple
          values can be seperated by comma
      """
      # Verify saved graph formats
      if formats is None:
          assert "coo" in part_g.formats()["created"]
      else:
          formats = formats.split(",")
          for format in formats:
              assert format in part_g.formats()["created"]
  
file_path: dgl/tools/verification_utils.py
imports: import json
  import os
  import constants
  import dgl
  import numpy
  import pyarrow
  import pyarrow.parquet
  import pytest
  import torch
  from dgl.data.utils import load_tensors
  from dgl.distributed.partition import _etype_str_to_tuple, _etype_tuple_to_str, _get_inner_edge_mask, _get_inner_node_mask, RESERVED_FIELD_DTYPE
  from distpartitioning.utils import get_idranges
label_desc: Use image node_id 3 for calling a global function with example usage: verify_partition_formats(part_g, formats) without return types