code: def get_by_natural_key(self, *args):
          
  
          kwargs = self.natural_key_kwargs(*args)
  
          # Since kwargs already has __ lookups in it, we could just do this:
          # return self.get(**kwargs)
  
          # But, we should call each related model's get_by_natural_key in case
          # it's been overridden
          for name, rel_to in self.model.get_natural_key_info():
              if not rel_to:
                  continue
  
              # Extract natural key for related object
              nested_key = extract_nested_key(kwargs, rel_to, name)
              if nested_key:
                  # Update kwargs with related object
                  try:
                      kwargs[name] = rel_to.objects.get_by_natural_key(
                          *nested_key
                      )
                  except rel_to.DoesNotExist:
                      # If related object doesn't exist, assume this one doesn't
                      raise self.model.DoesNotExist()
              else:
                  kwargs[name] = None
  
          return self.get(**kwargs)
docs: Return the object corresponding to the provided natural key.
  
          (This is a generic implementation of the standard Django function)