code: def _domino_hand(d, hands):
      '''
      :param Domino d: domino to find within the hands
      :param list hands: hands to find domino in
      :return: index of the hand that contains the specified domino
      :raises NoSuchDominoException: if no hand contains the specified domino
      '''
      for i, hand in enumerate(hands):
          if d in hand:
              return i
  
      raise dominoes.NoSuchDominoException('{} is not in any hand!'.format(d)f _domino_hand(d, hands):
      '''
      :param Domino d: domino to find within the hands
      :param list hands: hands to find domino in
      :return: index of the hand that contains the specified domino
      :raises NoSuchDominoException: if no hand contains the specified domino
      '''
      for i, hand in enumerate(hands):
          if d in hand:
              return i
  
      raise dominoes.NoSuchDominoException('{} is not in any hand!'.format(d))
docs: :param Domino d: domino to find within the hands
      :param list hands: hands to find domino in
      :return: index of the hand that contains the specified domino
      :raises NoSuchDominoException: if no hand contains the specified domino