def __init__(
        self,
        node,
        type_codename=None,
        center=(0, 0),
    ):
        """Store arguments.

        Parameters
        ==========
        node (graphman.proxynode.main.ProxyNode object)
            node to which this socket belongs.
        """
        ### store arguments

        ## node instance
        self.node = node

        ## store type codename and perform related setups
        self.update_type_codename(type_codename)

        ### obtain rect from image and position it using
        ### the given center

        self.rect = self.image.get_rect()
        setattr(self.rect, "center", center)
Store arguments.

        Parameters
        ==========
        node (graphman.proxynode.main.ProxyNode object)
            node to which this socket belongs.
        
nodezator/graphman/socket/proxy.py