A federal appeals court is preparing to hear arguments on whether a first-of-its-kind law that prohibits licensed mental health professionals in California from offering therapies aimed at making gay and lesbian teenagers straight violates the civil rights of practitioners and parents.