Dress black finishes are done a number of ways, but as far as I can tell, they involve either painting or very heavy staining, and then a top coat over that to get that real glossy black finish without leaving your white gloves covered in charcoaly stains. You can also tint lacquers and shellac.
If you can't see any grain, you are dealing with a pipe that is basically painted and topcoated.