def dedent_interpd(func):
 if (isinstance(func, types.MethodType) and (not six.PY3)):
  func = func.im_func
 return interpd(dedent(func))

def dedent_interpd ( func ) : if ( isinstance ( func , types . MethodType ) and ( not six . PY3 ) ) : func = func . im_func return interpd ( dedent ( func ) )
a special case of the interpd that first performs a dedent on the incoming docstring .