def METHOD_NAME(n_block, b_obj_data, name=""):
    """Helper function to create a b_obj from b_obj_data, link it to the current scene, make it active and select it."""
    # get the actual nif name
    n_name = block_store.import_name(n_block)
    if name:
        n_name = name
    # let blender choose a name
    b_obj = bpy.data.objects.new(n_name, b_obj_data)
    # make the object visible and active
    bpy.context.scene.collection.objects.link(b_obj)
    bpy.context.view_layer.objects.active = b_obj
    block_store.store_longname(b_obj, n_name)
    b_obj.select_set(True)
    return b_obj