One tricky thing is to make sure that the code snippet can actually run. Often you need a bit of a bigger context to run the code. Like env vars or dependencies.