def METHOD_NAME(self) -> str:
    """
    Implementation of custom code similar to jinja:
    {{ switch_data.combined.mlag_peer_ipv4_pool | ansible.utils.ipaddr('network') |
       ansible.utils.ipmath((mlag_primary_id - 1) * 2 + ip_offset_10) }}
    """
    offset = self._mlag_primary_id - 1 + self._custom_ip_offset_10_subnets
    return self._ip(self._mlag_peer_ipv4_pool, 31, offset, 0)