code: def format_references(section):
      """Format the "References" section."""
  
      def format_item(item):
          return "    - **[{0}]** {1}".format(item[0], item[1].strip())
  
      return '!!! attention "References"\n{0}'.format(
          "\n".join(map(format_item, section))
      )
  
file_path: pytorch-meta/docs/scripts/api_reference.py
imports: import importlib
  import inspect
  import re
  import yaml
  import logging
  import torch.nn
label_desc: Use image node_id 4 for calling a global function with example usage: format_references(section) and returns: str, str