def ensure_dir_is_templated(dirname):
 if ((u'{{' in dirname) and (u'}}' in dirname)):
  return True
 else:
  raise NonTemplatedInputDirException

def ensure_dir_is_templated ( dirname ) : if ( ( u'{{' in dirname ) and ( u'}}' in dirname ) ) : return True else : raise NonTemplatedInputDirException
ensure that dirname is a templated directory name .