'Gets the size of a specific margin.
:param position: Margin position. See
:class:`spyder.api.Panel.Position`
:return: The size of the specified margin
:rtype: float'

def margin_size(self, position=Panel.Position.LEFT):

    return self._margin_sizes[position]
