Hello !
Having bought my bike new, I know... The bit of metal tubing is, as other say, for the overfill.
Put a fuel line in it, route it along the chassis and make it line with the battery overflow tube. They are normally going out at the same spot.
I was told the threaded nut under the tank was for a holding device during painting at the factory.