code: def _IsUnparsedFlagAccessAllowed(self, name):
      
      if _UNPARSED_FLAG_ACCESS_ENV_NAME in os.environ:
        # We've been told explicitly what to do.
        allow_unparsed_flag_access = (
            os.getenv(_UNPARSED_FLAG_ACCESS_ENV_NAME) == '1')
      elif self.__dict__['__reset_called']:
        # Raise exception if .Reset() was called. This mostly happens in tests.
        allow_unparsed_flag_access = False
      elif _helpers.IsRunningTest():
        # Staged "rollout", based on name of the flag so that we don't break
        # everyone.  Hashing the flag is a way of choosing a random but
        # consistent subset of flags to lock down which we can make larger
        # over time.
        name_bytes = name.encode('utf8') if not isinstance(name, bytes) else name
        flag_percentile = (
            struct.unpack('<I', hashlib.md5(name_bytes).digest()[:4])[0] % 100)
        allow_unparsed_flag_access = (
            _UNPARSED_ACCESS_DISABLED_PERCENT <= flag_percentile)
      else:
        allow_unparsed_flag_access = True
      return allow_unparsed_flag_access
docs: Determine whether to allow unparsed flag access or not.