A Beverly Hills attorney has been sentenced to four months in county jail after he pleaded no contest to a single charge of attempting to smuggle black tar heroin into the downtown Los Angeles courthouse.

Michael Inman, who practices in the areas of workers' compensation and general insurance defense, has been sentenced by Judge Michael Abzug of Los Angeles Superior Court to four months in jail and three years of probation, the L.A. Now blog of the Los Angeles Times reported.

InManm was originally charged with four criminal counts of drug possession and sales in connection with his June 2010 arrest. The lawyer had gone to the Clara Shortridge Foltz Criminal Justice Center to visit two defendants he was representing in a case regarding burglary and receiving stolen property. He was nabbed by a drug-sniffing dog.

At the time of his arrest, the lawyer was found in possession of about 14.25 grams of black tar heroin in a plastic bag and a trace amount of methamphetamine.

Subsequently, three other felony counts - possession of a controlled substance in a jail, possession for sale of a controlled substance and sale or transportation of a controlled substance - were dismissed.