code: def set_inherited_traits(self, egg_donor, sperm_donor):
          
          if type(egg_donor) == str:
              self.reproduce_asexually(egg_donor, sperm_donor)
          else:
              self.reproduce_sexually(egg_donor, sperm_donor)
docs: Accept either strings or Gods as inputs.