def monkeypatch_get_resource_dict(method, path, model=None, headers=None):
    """Return a fake requests.Response object with a mock .json() method."""

    class MockResponse:
        def json(self):
            resource = {
                "resourceId": path[1],
                "datasetId": "UNIT_TEST_DATASET_ID",
                "description": "UNIT_TEST_DESC",
                "folderId": "UNIT_TEST_FOLDER_ID",
                "folder": "UNIT_TEST_FOLDER",
                "mediaType": "avro/binary",
                "name": "test.avro",
                "size": 512,
                "type": "file",
                "config": {},
                "provenance": {},
                "asOf": "2019-04-23",
                "storageId": "UNIT_TEST_STORAGE_ID",
                "createdAt": "2019-04-23",
                "modifiedAt": "2019-04-23",
                "labels": [
                    {
                        "labelKey": "UNIT_TEST_LABEL_KEY",
                        "labelValue": "UNIT_TEST_LABEL_VALUE",
                    }
                ],
            }
            return resource

    response = MockResponse()
    return response