code: def format_signed(
      feature,  # type: Dict[str, Any]
      formatter=None,  # type: Callable[..., str]
      **kwargs,
  ):
      # type: (...) -> str
      """
      Format unhashed feature with sign.
  
      >>> format_signed({'name': 'foo', 'sign': 1})
      'foo'
      >>> format_signed({'name': 'foo', 'sign': -1})
      '(-)foo'
      >>> format_signed({'name': ' foo', 'sign': -1}, lambda x: '"{}"'.format(x))
      '(-)" foo"'
      """
      txt = "" if feature["sign"] > 0 else "(-)"
      name = feature["name"]  # type: str
      if formatter is not None:
          name = formatter(name, **kwargs)
      return "{}{}".format(txt, name)
  
file_path: eli5/eli5/formatters/utils.py
imports: from __future__ import absolute_import
  from itertools import chain
  import re
  import six
  from typing import Any, Union, List, Dict, Callable, Match, Optional
  import numpy
  from eli5.base import Explanation
  from .features import FormattedFeatureName
label_desc: Use image node_id 2 for calling a global function with example usage: format_signed(feature, formatter) and returns: str