Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _prepare_ipy_data_format(name, payload, encoder):
data = {GLUE_PAYLOAD_FMT.format(encoder=encoder): payload}
metadata = {"scrapbook": dict(name=name, data=True, display=False)}
# We don't display immediately here as this makes mocking difficult
return data, metadata