code: def get_inchi(self):
          '''Returns inchi'''
          inchi = parsers.get_inchi(self.__chebi_id)
  
          if inchi is None:
              inchi = parsers.get_inchi(self.get_parent_id())
  
          if inchi is None:
              for parent_or_child_id in self.__get_all_ids():
                  inchi = parsers.get_inchi(parent_or_child_id)
  
                  if inchi is not None:
                      break
  
          return inchf get_inchi(self):
          '''Returns inchi'''
          inchi = parsers.get_inchi(self.__chebi_id)
  
          if inchi is None:
              inchi = parsers.get_inchi(self.get_parent_id())
  
          if inchi is None:
              for parent_or_child_id in self.__get_all_ids():
                  inchi = parsers.get_inchi(parent_or_child_id)
  
                  if inchi is not None:
                      break
  
          return inchi
docs: Returns inchi