class_docstr: Formatter allowing Itpl style $foo replacement, for names and attribute
  access only. Standard {foo} replacement also works, and allows full
  evaluation of its arguments.
  
  Examples
  --------
  ::
  
      In [1]: f = DollarFormatter()
      In [2]: f.format('{n//4}', n=8)
      Out[2]: '2'
  
      In [3]: f.format('23 * 76 is $result', result=23*76)
      Out[3]: '23 * 76 is 1748'
  
      In [4]: f.format('$a or {b}', a=1, b=2)
      Out[4]: '1 or 2'
class_docstr_tok: ["Formatter","allowing","Itpl","style","$","foo","replacement",",","for","names","and","attribute","access","only",".","Standard","{","foo","}","replacement","also","works",",","and","allows","full","evaluation","of","its","arguments",".","Examples","--","--","--","--",":",":","In","[","1","]",":","f","=","DollarFormatter","(",")","In","[","2","]",":","f.format","(","'","{","n\/\/4","}","'",",","n=8",")","Out","[","2","]",":","'","2'","In","[","3","]",":","f.format","(","'23","*","76","is","$","result","'",",","result=23","*","76",")","Out","[","3","]",":","'23","*","76","is","1748'","In","[","4","]",":","f.format","(","'","$","a","or","{","b","}","'",",","a=1",",","b=2",")","Out","[","4","]",":","'","1","or","2","'"]
code: def __repr__(self):
      return "<DollarFormatter>"
  
imports: import os
  import re
  import string
  import sys
  import textwrap
  import warnings
  from string import Formatter
  from pathlib import Path
  from typing import List, Union, Optional, Dict, Tuple
label_desc: Use image node_id 2 for calling the DollarFormatter obj's underlying member method code with example usage: obj.__repr__() and returns: str