code: def test_standardize_mapping():
      # No uninitialized defaultdicts
      msg = r"to_dict\(\) only accepts initialized defaultdicts"
      with pytest.raises(TypeError, match=msg):
          com.standardize_mapping(collections.defaultdict)
  
      # No non-mapping subtypes, instance
      msg = "unsupported type: <class 'list'>"
      with pytest.raises(TypeError, match=msg):
          com.standardize_mapping([])
  
      # No non-mapping subtypes, class
      with pytest.raises(TypeError, match=msg):
          com.standardize_mapping(list)
  
      fill = {"bad": "data"}
      assert com.standardize_mapping(fill) == dict
  
      # Convert instance to type
      assert com.standardize_mapping({}) == dict
  
      dd = collections.defaultdict(list)
      assert isinstance(com.standardize_mapping(dd), partial)
  
imports: import collections
  from functools import partial
  import string
  import subprocess
  import sys
  import textwrap
  import numpy
  import pytest
  import pandas
  from pandas import Series
  import pandas._testing
  from pandas.core import ops
  import pandas.core.common
  from pandas.util.version import Version
label_desc: Use image node_id 6 for calling a global function with example usage: test_standardize_mapping() without return types