code: def origin_id_to_name(self, origin):
          
          try:
              oid = int(origin)
          except (ValueError, TypeError):
              return None
  
          return self.origins.get(oid)
docs: Returns a localized origin name for a given ID