class_docstr: The UnitConversion logic adapter parse inputs to convert values
  between several metric units.
  
  For example:
      User: 'How many meters are in one kilometer?'
      Bot: '1000.0'
  
  :kwargs:
      * *language* (``object``) --
      The language is set to ``chatterbot.languages.ENG`` for English by default.
class_docstr_tok: ["The","UnitConversion","logic","adapter","parse","inputs","to","convert","values","between","several","metric","units",".","For","example",":","User",":","'How","many","meters","are","in","one","kilometer","?","'","Bot",":","'1000.0'",":","kwargs",":","*","*","language","*","(","``","object","``",")","--","The","language","is","set","to","``","chatterbot.languages.ENG","``","for","English","by","default","."]
docstr: Get the first match unit metric object supported by pint library
  given a variation of unit metric names (Ex:['HOUR', 'hour']).
  
  :param unit_variations: A list of strings with names of units
  :type unit_variations: str
docstr_tok: ["Get","the","first","match","unit","metric","object","supported","by","pint","library","given","a","variation","of","unit","metric","names","(","Ex",":","[","'HOUR","'",",","'hour","'","]",")",".",":","param","unit_variations",":","A","list","of","strings","with","names","of","units",":","type","unit_variations",":","str"]
code: def get_unit(self, unit_variations):
      """
      Get the first match unit metric object supported by pint library
      given a variation of unit metric names (Ex:['HOUR', 'hour']).
  
      :param unit_variations: A list of strings with names of units
      :type unit_variations: str
      """
      for unit in unit_variations:
          try:
              return getattr(self.unit_registry, unit)
          except Exception:
              continue
      return None
  
file_path: ChatterBot/chatterbot/logic/unit_conversion.py
imports: from chatterbot.logic import LogicAdapter
  from chatterbot.conversation import Statement
  from chatterbot.exceptions import OptionalDependencyImportError
  from chatterbot import languages
  from chatterbot import parsing
  from mathparse import mathparse
  import re
label_desc: Use image node_id 2 for calling the UnitConversion obj's underlying member method code with example usage: obj.get_unit(unit_variations) and returns: None, getattr