A downhole gas separation system comprising: a downhole pump configured to pump the wellbore fluid in an uphole direction; and an inverted Y-tool configured to be positioned in multiphase wellbore fluid flowing through a wellbore, the inverted Y-tool configured to separate at least a portion of gas from the multiphase wellbore fluid and, after separating at least the portion of the gas from the multiphase wellbore fluid, to direct the multiphase wellbore fluid to the downhole pump, wherein the inverted Y-tool comprises i) a first elongate tubular member comprising a first uphole end configured to attach to a downhole end of the downhole pump configured to be positioned in the wellbore to pump the multiphase wellbore fluid in an uphole direction, and a first downhole end, the first downhole end configured to prevent flow of the multiphase wellbore fluid in a downhole direction and ii) a second elongate tubular member fluidically connected to the first elongate tubular member, the second elongate tubular member configured to receive the multiphase wellbore fluid and to flow the received multiphase wellbore fluid in the downhole direction toward the first downhole end of the first elongate tubular member. a downhole pump configured to pump the wellbore fluid in an uphole direction; and an inverted Y-tool configured to be positioned in multiphase wellbore fluid flowing through a wellbore, the inverted Y-tool configured to separate at least a portion of gas from the multiphase wellbore fluid and, after separating at least the portion of the gas from the multiphase wellbore fluid, to direct the multiphase wellbore fluid to the downhole pump, wherein the inverted Y-tool comprises i) a first elongate tubular member comprising a first uphole end configured to attach to a downhole end of the downhole pump configured to be positioned in the wellbore to pump the multiphase wellbore fluid in an uphole direction, and a first downhole end, the first downhole end configured to prevent flow of the multiphase wellbore fluid in a downhole direction and ii) a second elongate tubular member fluidically connected to the first elongate tubular member, the second elongate tubular member configured to receive the multiphase wellbore fluid and to flow the received multiphase wellbore fluid in the downhole direction toward the first downhole end of the first elongate tubular member. i) a first elongate tubular member comprising a first uphole end configured to attach to a downhole end of the downhole pump configured to be positioned in the wellbore to pump the multiphase wellbore fluid in an uphole direction, and a first downhole end, the first downhole end configured to prevent flow of the multiphase wellbore fluid in a downhole direction and a first uphole end configured to attach to a downhole end of the downhole pump configured to be positioned in the wellbore to pump the multiphase wellbore fluid in an uphole direction, and a first downhole end, the first downhole end configured to prevent flow of the multiphase wellbore fluid in a downhole direction and ii) a second elongate tubular member fluidically connected to the first elongate tubular member, the second elongate tubular member configured to receive the multiphase wellbore fluid and to flow the received multiphase wellbore fluid in the downhole direction toward the first downhole end of the first elongate tubular member.