code: def core_profile_check(self) -> None:
          '''
              Core profile check.
  
              FOR DEBUG PURPOSES ONLY
          '''
  
          profile_mask = self.info['GL_CONTEXT_PROFILE_MASK']
          if profile_mask != 1:
              warnings.warn('The window should request a CORE OpenGL profile')
  
          version_code = self.version_code
          if not version_code:
              major, minor = map(int, self.info['GL_VERSION'].split('.', 2)[:2])
              version_code = major * 100 + minor * 10
  
          if version_code < 330:
              warnings.warn('The window should support OpenGL 3.3+ (version_code=%d)' % version_codef core_profile_check(self) -> None:
          '''
              Core profile check.
  
              FOR DEBUG PURPOSES ONLY
          '''
  
          profile_mask = self.info['GL_CONTEXT_PROFILE_MASK']
          if profile_mask != 1:
              warnings.warn('The window should request a CORE OpenGL profile')
  
          version_code = self.version_code
          if not version_code:
              major, minor = map(int, self.info['GL_VERSION'].split('.', 2)[:2])
              version_code = major * 100 + minor * 10
  
          if version_code < 330:
              warnings.warn('The window should support OpenGL 3.3+ (version_code=%d)' % version_code)
docs: Core profile check.
  
              FOR DEBUG PURPOSES ONLY