def METHOD_NAME(min_distance):
    def points_fn(nw: NodeWrangler, points):
        return nw.new_node(Nodes.MergeByDistance, input_kwargs={'Geometry': points, 'Distance': min_distance})
    return points_fn