MCPcopy Index your code
hub / github.com/ray-project/ray / expected

Function expected

python/ray/data/tests/test_random_access.py:20–21  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

18 rad = ds.to_random_access_dataset("key", num_workers=1)
19
20 def expected(i):
21 return {"id": i, "key": i * 2, "embedding": i**2}
22
23 # Test get.
24 assert ray.get(rad.get_async(-1)) is None

Callers 1

test_basicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…