code: def represent_dict(self, data):
      """Compact dicts"""
      return self.represent_mapping(
          "tag:yaml.org,2002:map", data, flow_style=False
      )
  
imports: import json
  import re
  import warnings
  from textwrap import dedent
  import nbformat
  import yaml
  from .cell_to_text import three_backticks_or_more
label_desc: Use image node_id 8 for calling a global function with example usage: represent_dict(data) and returns: self