NEW YORK -- President Barack Obama's visit on Friday to a Brooklyn public school operated in partnership with IBM puts him, perhaps unwittingly, in the thick of a charged battle over education policy in the nation's largest school system.

The school, Pathways in Technology Early College High School, or P-Tech, was touted by Obama in his 2013 State of the Union address. "Now at schools like P-Tech in Brooklyn, collaboration between New York public schools and City University of New York and IBM, students will graduate with a high school diploma and an associate's degree," he said. "We need to give every American student opportunities like this."

But inside the building that houses P-Tech is what's left of Paul Robeson High School -- as many as 50 students, three teachers and a couple of administrators who also work in the classroom. Robeson is being phased out. It stopped admitting ninth graders in 2011-2012, when P-Tech moved in, along with another school.

The presidential visit awkwardly highlights questions that have roiled New York during Mayor Michael Bloomberg's three terms in office, including who schools are built for, and who gets to run them. The questions fueled the Democratic mayoral primary campaign, in which Public Advocate Bill de Blasio trounced opponents in part by opposing Bloomberg's education policies.

Obama will use his visit on Friday to urge congressional budget conferees to boost the middle class by increasing funds for career education, according to the White House. Federal budget sequestration is slated to cut $1.2 trillion from vocational school funding over the next decade.

P-Tech represents a new breed of technical education. It opened in 2011 with about 100 students, and will likely have as many as 450 students by next year. Chicago Mayor Rahm Emanuel (D) and New York Gov. Andrew Cuomo (D) are among the officials who have sought to copy P-Tech's model.

Bloomberg's time as mayor have been defined by school turnover. While charter schools have received the most attention, Bloomberg created 654 new schools -- of which only 173 were charters -- and shuttered 164 schools for low academic performance. Many of them are small schools. (A recent Massachusetts Institute of Technology study of 101 such small schools found their students 7 percent more likely to attend college than peers in big public schools.) Many of the new schools have moved into buildings being vacated by doomed schools as they're phased out, a process city school officials call "co-location."

Bloomberg's drive to shut down big campuses generated raucous public hearings and school walkouts. De Blasio, who will likely succeed Bloomberg, called for a moratorium on closures and co-locations.

The school closings also are unpopular with some school communities. "The whole closing of schools is musical chairs," said Stefanie Siegel, who left Robeson in 2012 after teaching there for almost a quarter-century. "It does a lot of damage to community."

Robeson opened in the 1980s in partnership with Salomon Brothers, the Wall Street firm where Bloomberg started his career. As Siegel described it, the firm's promises were similar to IBM's for P-Tech.

But in 2002, Bloomberg and his schools chancellor Joel Klein started the small schools movement. Many big high schools were disbanded, and students who didn't attend the new schools shifted to the remaining big schools.

Robeson, which had a capacity of 1,000 students, Siegel said, found itself with 1,500 in 2005. "That's when we started having a lot of incidents, gang issues, things that didn't come into the building before that," Siegel said. "This is the story of all the schools that got closed down. We had the lowest dropout rates in the city, kids didn't leave, but it wasn't balanced. what it became was over 30 percent high-needs students, and no institution can survive that sudden change." A longtime basketball coach faced allegations of a long-term affair with a former student, and killed himself. A few abrupt changes of principals followed.

Scores dropped, and the city school governance panel -- whose members are mostly appointed by Bloomberg -- decided the school should be closed. A lawsuit filed by the United Federation of Teachers union stalled the closure for a year, allowing teachers and students fighting to save Robeson time to improve graduation rates.

But again in 2011, Robeson wound up on the city's closure list. “Roughly half of the kids who come to this school will graduate,” Deputy Chancellor John White -- who now oversees education in Louisiana -- said at a hearing, as reported by the GothamSchools blog. “Our goal is to change the outcome for kids.”

Lizabeth Cooper, a 2012 Robeson alumna who advocated for the school and now studies at the New York Conservatory for Dramatic Arts, said her school was full of energy until it was slated for closure.

"Everything that was, wasn't anymore," Cooper said. "If you yell at someone, the prettiest person in the world, 'You're ugly, you're ugly, you're ugly,' at some point they're going to think they're ugly. That's what the media did to my school -- they drained it, and they turned it into crap, and that's what my school became."

When P-Tech moved into the building, the two schools shared a cafeteria. Robeson students found themselves eating lunch at 2 p.m. The students lost access to parts of the building. The remaining Robeson students, Siegel said, are mostly "overage, unaccredited kids."

The Robeson students are "second-class citizens," said Justin Wedes, an Occupy Wall Street activist who worked with Robeson. "They're stuck on a sinking ship." From 5 to 15 students regularly attend, he said.

But P-Tech's history isn't stopping closure critics, like de Blasio and United Federation of Teachers president Michael Mulgrew, from planning Friday appearances at the school for Obama's visit. Mulgrew has been a longtime advocate for career education and a strong proponent of schools like P-Tech.

"Bloomberg now gets to say he did a lot of career and technical education," Mulgrew said in an interview, giving the mayor a rare nod. "In P-Tech, you have industry partners working hand in hand with the school. … It has industry partners, an agreement with higher education and it really engages kids in a very modern skill set."

Mulgrew said his support for P-Tech shouldn't be mixed with his views on school closings. "What the Department of Education has done with closing schools, I am pretty much on the record as, [saying they are] disgusting," he said. "But that doesn't mean that we're not going to support new schools that are opening in those buildings. It's not the fault of the school that it 's what the Department of Education has done.

"This is not about closing schools and co-locations," Mulgrew said. "This is about, we want to celebrate this school."

Others see another purpose in Obama's P-Tech stop: "He needs some good news at this point because of the health care thing," said David Bloomfield, a professor of educational leadership, law, and policy at the CUNY Grad Center.

Also on HuffPost:

Loading Slideshow...
  • Raul Castro, President Of Cuba

    In this image from TV, US President Barack Obama shakes hands with Cuban President Raul Castro at the FNB Stadium in Soweto, South Africa, in the rain for a memorial service for former South African President Nelson Mandela, Tuesday Dec. 10, 2013. (AP Photo/SABC Pool)

  • Cristina Fernandez, President Of Argentina

    President Barack Obama meets with Argentina's President Cristina Fernandez at the G20 Summit in Cannes, France, Friday, Nov. 4, 2011. (AP Photo/Charles Dharapak)

  • Hamid Karzai, President Of Afghanistan

    Afghanistan President Hamid Karzai (L) and U.S. President Barack Obama shake hands after a joint news conference in the East Room of the White House on January 11, 2013 in Washington, D.C. (Photo by Chip Somodevilla/Getty Images)

  • Julia Gillard, Prime Minister Of Australia

    U.S. President Barack Obama (L) and Australian Prime Minister Julia Gillard shake hands during a bilateral meeting at Parliament House in Canberra on November 16, 2011. (JIM WATSON/AFP/Getty Images)

  • Dilma Rousseff, President Of Brazil

    U.S. President Barack Obama (L) shakes hands with Brazilian President Dilma Vana Rousseff (R) during a joint press conference at Palacio do Planalto in Brasilia on March 19, 2011. (JIM WATSON/AFP/Getty Images) <em><strong>CORRECTION:</strong> The title of this slide initially referred to Dilma Rousseff as the prime minister of Brazil. In fact, she is the president of Brazil.</em>

  • Hun Sen, Prime Minister Of Cambodia

    U.S. President Barack Obama (L) and Cambodian Prime Minister Hun Sen (R) reach out to shake hands on arrival at the Peace Palace for the Association of Southeast Asian Nations (ASEAN) and US summit in Phnom Penh on November 19, 2012 following the 21st ASEAN Leaders Summit. (ROMEO GACAD/AFP/Getty Images)

  • Stephen Harper, Prime Minister Of Canada

    President Barack Obama shakes hands with Canada’s Prime Minister Stephen Harper in bilateral meeting during the G20 Summit, Tuesday, June 19, 2012, in Los Cabos, Mexico. (AP Photo/Carolyn Kaster)

  • Sebastian Pinera, President Of Chile

    U.S. President Barack Obama greets Chilean President Sebastian Pinera before a dinner at the Washington Convention Center during the Nuclear Security Summit in Washington, DC, on April 12, 2010. (JEWEL SAMAD/AFP/Getty Images)

  • Xi Jinping, President Of China

    U.S. President Barack Obama shakes hands with then-Chinese Vice President Xi Jinping during meetings in the Oval Office of the White House in Washington, DC, February 14, 2012. (SAUL LOEB/AFP/Getty Images)

  • Juan Manuel Santos, President Of Colombia

    Colombia President Juan Manuel Santos (R) and U.S. President Barack Obama shake hands during a joint press conference in the framework of the VI Summit of the Americas at Casa de Huespedes in Cartagena, Colombia, on April 15, 2012. (SAUL LOEB/AFP/Getty Images)

  • Laura Chinchilla, President Of Costa Rica

    President Barack Obama and Costa Rica's President Laura Chinchilla shake hands at the end of their joint press conference in San Jose, Costa Rica, Friday, May 3, 2013. (AP Photo/Moises Castillo)

  • Francois Hollande, President Of France

    President Barack Obama shakes hands with French President Francois Hollande on arrival for the G8 Summit Friday, May 18, 2012 at Camp David, Md. (AP Photo/Charles Dharapak)

  • Angela Merkel, Chancellor Of Germany

    U.S. President Barack Obama (R) shakes hands with German Chancellor Angela Merkel looks after a joint press conference following their meeting in the East Room of the White House in Washington, D.C., on June 7, 2011. (JEWEL SAMAD/AFP/Getty Images)

  • Giorgio Napolitano, President Of Italy

    President Barack Obama shakes hands with Italian President Giorgio Napolitano during their meeting in the Oval Office of the White House in Washington, Friday, Feb. 15, 2013. (AP Photo/Jacquelyn Martin)

  • Shinzo Abe, Prime Minister Of Japan

    President Barack Obama shakes hands with Japan's Prime Minister Shinzo Abe in the Oval Office of the White House in Washington, Friday, Feb. 22, 2013. (AP Photo/Charles Dharapak)

  • Park Geu-Hye, President Of South Korea

    President Barack Obama and South Korea President Park Geun-Hye shake hands at the conclusion of their joint news conference in the East Room of the White House in Washington, Tuesday, May 7, 2013. (AP Photo/Pablo Martinez Monsivais)

  • Enrique Pena Nieto, President Of Mexico

    President Barack Obama, left, and Mexico President Enrique Pena Nieto, right, shake hands following a news conference at the Palacio Nacional in Mexico City, Thursday, May 2, 2013. (AP Photo/Pablo Martinez Monsivais)

  • Benigno Aquino, President Of The Philippines

    U.S. President Barack Obama (R) shakes hands with President Benigno Aquino of the Philippines in the Oval Office at the White House on June 8, 2012 in Washington, D.C. (Photo by Kevin Dietsch-Pool/Getty Images)

  • Donald Tusk, Prime Minister Of Poland

    Polish Prime Minister Donald Tusk (R) shake hands with U.S. President Barack Obama (L) during their meeting in Warsaw on May 28, 2011. (JANEK SKARZYNSKI/AFP/Getty Images)

  • Sheik Hamad bin Khalifa Al Thani, Amir Of Qatar

    President Barack Obama shakes hands with Sheik Hamad bin Khalifa Al Thani of Qatar during their meeting in the Oval Office of the White House in Washington, Tuesday, April 23, 2013. (AP Photo/Pablo Martinez Monsivais)

  • Traian Basescu, President Of Romania

    U.S. President Barack Obama (R) greets Romania's President Traian Basescu before a dinner at the US Ambassador's residence in Prague on April 8, 2010. (JEWEL SAMAD/AFP/Getty Images)

  • Vladimir Putin, President Of Russia

    President Barack Obama shakes hands with Russia’s President Vladimir Putin in a bilateral meeting during the G20 Summit, Monday, June 18, 2012, in Los Cabos, Mexico. (AP Photo/Carolyn Kaster)

  • Abdullah bin Abdulaziz Al Saud, King Of Saudi Arabia

    U.S. President Barack Obama shakes hands with King Abdullah bin Abdulaziz Al Saud of Saudi Arabia during meetings in the Oval Office at the White House in Washington, DC, June 29, 2010. (SAUL LOEB/AFP/Getty Images)

  • Lee Hsien Loong, Prime Minister Of Singapore

    President Barack Obama shakes hands with with Singapore Prime Minister Lee Hsien Loong during their meeting in the Oval Office of the White House in Washington, Tuesday, April, 2, 2013. (AP Photo/Pablo Martinez Monsivais)

  • Fredrik Reinfeldt, Prime Minister Of Sweden

    U.S. President Barack Obama shakes hands with Sweden's Prime Minister Fredrik Reinfeldt (L) during meetings in the Oval Office of the White House in Washington, DC, November 2, 2009. (SAUL LOEB/AFP/Getty Images)

  • Yingluck Shinawatra, Prime Minister Of Thailand

    U.S. President Barack Obama, left, and Thai Prime Minister Yingluck Shinawatra shake hands following the conclusion of their joint news conference at Thai Government House in Bangkok, Thailand, Sunday, Nov. 18, 2012. (AP Photo/Pablo Martinez Monsivais)

  • Abdullah II, King Of Jordan

    FILE - In this March 22, 2013, file photo, President Barack Obama, left, and Jordan's King Abdullah II, right, shake hands following their joint new conference at the King's Palace in Amman, Jordan. (AP Photo/Pablo Martinez Monsivais, File)

  • Recep Tayyip Erdogan, Prime Minister Of Turkey

    U.S. President Barack Obama (R) shakes hands with Turkish Prime Minister Recep Tayyip Erdogan after their bilateral meeting in Seoul on March 25, 2012 on the eve of the 2012 Seoul Nuclear Security Summit. (JEWEL SAMAD/AFP/Getty Images)

  • David Cameron, Prime Minister Of Great Britain

    President Barack Obama shakes hands with Britain's Prime Minister David Cameron on arrival for the G8 Summit Friday, May 18, 2012 at Camp David, Md. (AP Photo/Charles Dharapak)

  • Hugo Chavez, Former President Of Venezuela

    Venezuelan President Hugo Chavez (R) gives a book, 'The Open Veins of Latin America' of Uruguayan writer Eduardo Galeano to US President Barack Obama (L) during a multilateral meeting to begin during the Summit of the Americas at the Hyatt Regency in Port of Spain, Trinidad April 18, 2009. (JIM WATSON/AFP/Getty Images)