<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_fba_problem(model, tfba, solver):
 """Convenience function for returning the right FBA problem instance"""

    p = FluxBalanceProblem(model, solver)
    if tfba:
        p.add_thermodynamic()
    return p