I want to import a model of bench in .glb format using python inside blender.
What function am I supposed to use?
GLB is the binary form of the glTF format, and the importer (2.80 and higher, or 2.79 with manual install) can handle GLB filenames directly.
bpy.ops.import_scene.gltf(filepath='path/to/myFile.glb')
Blender uses the gltf naming, the import operator is bpy.ops.import_scene.gltf()