def _maybe_assert_valid_concentration(self, concentration, validate_args):
if not validate_args:<EOL><INDENT>return concentration<EOL><DEDENT>return distribution_util.with_dependencies([<EOL>assert_util.assert_positive(<EOL>concentration, message="<STR_LIT>"),<EOL>], concentration)<EOL>
Checks the validity of a concentration parameter.