I also believe it's a breather vent. Black one being the gas line. Bowl drain tube on bottom. Follow it up, if it goes to nothing it's a vent. Since it's probably not original equipment you may want to check it out. Should go near gas tank fill, higher up on the bike.
Best test is to go riding