Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/diffgram/diffgram
/ create_image
Function
create_image
shared/tests/test_utils/data_mocking.py:222–226 ·
view source on GitHub ↗
(image_data, session)
Source
from the content-addressed store, hash-verified
220
221
222
def
create_image(image_data, session):
223
im_obj = Image(**image_data)
224
session.add(im_obj)
225
session.commit()
226
return
im_obj
227
228
229
def
create_input(input_data, session):
Callers
nothing calls this directly
Calls
3
Image
Class · 0.90
commit
Method · 0.80
add
Method · 0.45
Tested by
no test coverage detected