Convert sample usage to code block