Apply texture to a model via blender script
What it was missing is a link between the shader and the texture. We can do it as follows:

myobj_material_links = myobj.active_material.node_tree.links
my_obj_shader = myobj_material_nodes.get('Principled BSDF')
myobj_material_links.new(my_obj_shader.inputs["Base Color"], node_texture.outputs["Color"])