def check_tracking_enabled(self):
track = True   <EOL>test = False  <EOL>testvar = str(os.environ.get("<STR_LIT>", '<STR_LIT:None>')).lower()<EOL>if testvar == '<STR_LIT:true>':<EOL><INDENT>test = True<EOL><DEDENT>if not self.config.usage_tracking:<EOL><INDENT>track = False<EOL><DEDENT>envvar = str(os.environ.get("<STR_LIT>", True)).lower()<EOL>if envvar == "<STR_LIT:false>":<EOL><INDENT>track = False<EOL><DEDENT>return test, track<EOL>
By default tracking is enabled.

        If Test mode is set via env variable PARSL_TESTING, a test flag is set

        Tracking is disabled if :
            1. config["globals"]["usageTracking"] is set to False (Bool)
            2. Environment variable PARSL_TRACKING is set to false (case insensitive)