def create_geometry_nodes_node_group():
    """Create a new node group for a geometry nodes modifier."""
    node_group = bpy.data.node_groups.new("GeometryNodes", "GeometryNodeTree")
    socket_type = "NodeSocketGeometry"
    socket_name = "Geometry"
    input_node = create_interface_socket(
        node_group, socket_name, "INPUT", socket_type
    )
    output_node = create_interface_socket(
        node_group, socket_name, "OUTPUT", socket_type
    )

    node_group.links.new(
        input_node.outputs["Geometry"], output_node.inputs["Geometry"]
    )
    return node_group
Create a new node group for a geometry nodes modifier.
photogrammetry_importer/importers/point_utility.py