parameters: (d, as_game=False)
docstring: Format a collection of params.
docstring_summary: Format a collection of params.
docstring_tokens: Format a collection of params .
function: def _format_params(d, as_game=False):
    """Format a collection of params."""
  
    def fmt(val):
      if isinstance(val, dict):
        return _format_params(val, as_game=True)
      else:
        return _escape(str(val))
  
    if as_game:
      return d["name"] + "(" + ",".join(
          "{}={}".format(key, fmt(value))
          for key, value in sorted(d.items())
          if key != "name") + ")"
    else:
      return "{" + ",".join(
          "{}={}".format(key, fmt(value))
          for key, value in sorted(d.items())) + "}"
function_tokens: def _format_params ( d , as_game = False ) : def fmt ( val ) : if isinstance ( val , dict ) : return _format_params ( val , as_game = True ) else : return _escape ( str ( val ) ) if as_game : return d [ "name" ] + "(" + "," . join ( "{}={}" . format ( key , fmt ( value ) ) for key , value in sorted ( d . items ( ) ) if key != "name" ) + ")" else : return "{" + "," . join ( "{}={}" . format ( key , fmt ( value ) ) for key , value in sorted ( d . items ( ) ) ) + "}"