code: def convert(cls, language):
      if language and isinstance(language, str):
          try:
              language = Language[language.upper()]
          except KeyError:
              raise exception.InvalidLanguageError(language)
      return language
  
file_path: sklearn-porter/sklearn_porter/enums/__init__.py
imports: from enum import Enum
  from sklearn_porter.language import *
  from sklearn_porter import exceptions
label_desc: Use image node_id 1 for calling the Language obj's underlying member method code with example usage: obj.convert(cls, language) and returns: language