API RP 686 is a recommended practice.
"3.1.2.6 The pump suction line shall have a straight run (typically five diameters) between the suction flange and first elbow, tee, valve, reducer, permanent strainer, or other obstruction sufficient to ensure stable uniform flow at the pump suction nozzle.
Note: A piping straight run length of five pipe diameters, based on the pump suction nozzle size, is usually sufficient to ensure stable and uniform the pump suction nozzle. In some situations, the type and orientation valves and elbows in the pump suction line may affect the flow distribution to the impeller and necessitate a longer piping straight run length. Flow straighteners may also be utilized to reduce the piping straight run length."
The straight run length of five pipe diameters is usually sufficient to ensure stable and uniform flow at the pump suction. This piping arrangement results in fewer failures over the life of the pump due to vibrations caused by flow induced turbulence. The manufacturer of the pump should also be consulted for additional specific requirements for the particular pump.