MCPcopy Index your code
hub / github.com/huggingface/datasets / get_dict_example_1

Method get_dict_example_1

tests/features/test_array_xd.py:161–166  ·  view source on GitHub ↗
(self, shape_1, shape_2)

Source from the content-addressed store, hash-verified

159 }
160
161 def get_dict_example_1(self, shape_1, shape_2):
162 return {
163 "image": np.random.rand(*shape_1).astype("float32"),
164 "matrix": np.random.rand(*shape_2).astype("float32"),
165 "source": "bar",
166 }
167
168 def get_dict_examples(self, shape_1, shape_2):
169 return {

Callers 1

test_writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected