@typecheck(str)
def checker(aString):
 if (aString == ''):
  return 1
 else:
  return 2

@ typecheck ( str ) def checker ( aString ) : if ( aString == '' ) : return 1 else : return 2
decorator to register a function as a checker .