Example code of Single Master and Multi Slave or Multi Master Single Slave

Is there an code example of Single Master with Multi Slave or Multi Master with Single slave? Would like to see how the test bench and connection looks like.