Optionalinitial: Map<string, Uint8Array<ArrayBufferLike>> | Map<string, { Bytes: Uint8Array }>optional seed: either a plain fileId → bytes map, or a
training InMemoryArtifactStore.Saved-shaped map (fileId → { Bytes }).
Fetch the serialized artifact bytes previously stored under fileId.
the MLModel.ArtifactFileID value
Optional_contextUser: UserInforequest user — required server-side for isolation/audit
the artifact bytes, or null when not found
Register artifact bytes under a file id (test setup convenience).
In-memory IArtifactLoader for unit tests. Holds artifact bytes keyed by file id and returns them on load. No database, no MJStorage.
Bridges the training-side
InMemoryArtifactStore: pass itsSavedmap (keyed by the returned file id, with{ Bytes }) so a model trained in-memory is directly loadable for scoring in the same test.