code: def calculate_affinity(user1, user2, round=False):  # pragma: no cover
      
      return MALAffinity(base_user=user1, round=round).calculate_affinity(user2)
docs: Quick one-off affinity calculations.
  
      Creates an instance of the ``MALAffinity`` class with ``user1``,
      then calculates affinity with ``user2``.
  
      :param str user1: First user
      :param str user2: Second user
      :param round: Decimal places to round affinity values to.
          Specify ``False`` for no rounding
      :type round: int or False
      :return: (float affinity, int shared)
      :rtype: tuple