{"task": {"agent_timeout": 1800, "task": "385", "verifier_timeout": 1800, "instruction": "# 385: DS-1000 Task\n\n## Prompt\nProblem:\nI have a 2-d numpy array as follows:\na = np.array([[1,5,9,13],\n              [2,6,10,14],\n              [3,7,11,15],\n              [4,8,12,16]]\nI want to extract it into patches of 2 by 2 sizes with out repeating the elements.\nThe answer should exactly be the same. This can be 3-d array or list with the same order of elements as below:\n[[[1,5],\n [2,6]],   \n [[3,7],\n [4,8]],\n [[9,13],\n [10,14]],\n [[11,15],\n [12,16]]]\nHow can do it easily?\nIn my real problem the size of a is (36, 72). I can not do it one by one. I want programmatic way of doing it.\nA:\n<code>\nimport numpy as np\na = np.array([[1,5,9,13],\n              [2,6,10,14],\n              [3,7,11,15],\n              [4,8,12,16]])\n</code>\nresult = ... # put solution in this variable\nBEGIN SOLUTION\n<code>\n\n## What to do\n- Edit `solution/solution.py` so the code passes the DS-1000 tests.\n- Do not access the internet or install new packages; required libraries are preinstalled in the Docker image.\n- Run tests locally via `bash tests/test.sh`.\n\n## Notes\n- Keep the variable names/signatures implied by the prompt/code_context.\n- The evaluator uses the original DS-1000 `code_context` (`test_execution` / `test_string`).\n", "memory": "", "runnable": false, "difficulty": "", "language": "", "cpus": "", "instruction_truncated": false, "category": "", "compose": false, "has_solution": true, "oracle": null, "docker_image": "ds1000:latest", "taskset": "ds1000", "tags": []}, "runs": []}