code: def _resolve_lookup_chain(self, chain, instance):
          
          value = instance
  
          for link in chain:
              value = getattr(value, link)
  
          return value
docs: Return the value of inst.chain[0].chain[1].chain[...].chain[n].