fromabcimportABCfromlagomimportContainer#--------------------------------------------------------------# Here is an example of some classes your application may be built fromDiceApiUrl=NewType("DiceApiUrl",str)classRateLimitingConfig:passclassDiceClient(ABC):passclassHttpDiceClient(DiceClient):def__init__(self,url:DiceApiUrl,limiting:RateLimitingConfig):passclassGame:def__init__(self,dice_roller:DiceClient):pass#--------------------------------------------------------------# Next we setup some definitionscontainer=Container()# We need a specific urlcontainer[DiceApiUrl]=DiceApiUrl("https://roll.diceapi.com")# Wherever our code wants a DiceClient we get the http onecontainer[DiceClient]=HttpDiceClient#--------------------------------------------------------------# Now the container can build the game objectgame=container[Game]