We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Four components should be three components?
In the recently created example "writing_dense_rgb.py" there is this fragment:
https://github.com/TileDB-Inc/TileDB-Py/blob/75ddcf56ed80ba5e1a1237b7e527ec4fbd87abb9/examples/writing_dense_rgb.py#L56-L57

It says four int32 components where it seems like it should be three int32 components. After all the values of the attribute are RGB and not RGBA.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `examples/writing_dense_rgb.py`
Content:
```
1 # writing_dense_rgb.py
2 #
3 # LICENSE
4 #
5 # The MIT License
6 #
7 # Copyright (c) 2021 TileDB, Inc.
8 #
9 # Permission is hereby granted, free of charge, to any person obtaining a copy
10 # of this software and associated documentation files (the "Software"), to deal
11 # in the Software without restriction, including without limitation the rights
12 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 # copies of the Software, and to permit persons to whom the Software is
14 # furnished to do so, subject to the following conditions:
15 #
16 # The above copyright notice and this permission notice shall be included in
17 # all copies or substantial portions of the Software.
18 #
19 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 # THE SOFTWARE.
26 #
27 # DESCRIPTION
28 #
29 # Please see the TileDB documentation for more information:
30 #   https://docs.tiledb.com/main/solutions/tiledb-embedded/api-usage/writing-arrays/writing-in-dense-subarrays
31 #
32 # When run, this program will create a 2D+1 multi-component (eg RGB) dense array, write some
33 # data to it, and read the entire array data.
34 
35 import tiledb, numpy as np
36 
37 img_shape = (100, 224, 224)
38 img_uri = "writing_dense_rgb"
39 
40 image_data = np.random.randint(low=0, high=100, size=(*img_shape, 3), dtype=np.int32)
41 
42 
43 def create_array():
44     domain = tiledb.Domain(
45         tiledb.Dim(
46             name="image_id", domain=(0, img_shape[0] - 1), tile=4, dtype=np.int32
47         ),
48         tiledb.Dim(
49             name="x", domain=(0, img_shape[1] - 1), tile=img_shape[1], dtype=np.int32
50         ),
51         tiledb.Dim(
52             name="y", domain=(0, img_shape[2] - 1), tile=img_shape[2], dtype=np.int32
53         ),
54     )
55 
56     # create multi-component attribute with four int32 components
57     attr = tiledb.Attr(dtype=np.dtype("i4, i4, i4"))
58 
59     schema = tiledb.ArraySchema(domain=domain, sparse=False, attrs=[attr])
60 
61     tiledb.Array.create(img_uri, schema)
62 
63     image_data_rgb = image_data.view(np.dtype("i4, i4, i4"))
64 
65     with tiledb.open(img_uri, "w") as A:
66         # write data to 1st image_id slot
67         A[:] = image_data_rgb
68 
69 
70 def read_array():
71     with tiledb.open(img_uri) as A:
72         print(A[:].shape)
73 
74 
75 if __name__ == "__main__":
76     create_array()
77     read_array()
78
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/examples/writing_dense_rgb.py b/examples/writing_dense_rgb.py
--- a/examples/writing_dense_rgb.py
+++ b/examples/writing_dense_rgb.py
@@ -53,7 +53,7 @@
         ),
     )
 
-    # create multi-component attribute with four int32 components
+    # create multi-component attribute with three int32 components
     attr = tiledb.Attr(dtype=np.dtype("i4, i4, i4"))
 
     schema = tiledb.ArraySchema(domain=domain, sparse=False, attrs=[attr])

{"golden_diff": "diff --git a/examples/writing_dense_rgb.py b/examples/writing_dense_rgb.py\n--- a/examples/writing_dense_rgb.py\n+++ b/examples/writing_dense_rgb.py\n@@ -53,7 +53,7 @@\n         ),\n     )\n \n-    # create multi-component attribute with four int32 components\n+    # create multi-component attribute with three int32 components\n     attr = tiledb.Attr(dtype=np.dtype(\"i4, i4, i4\"))\n \n     schema = tiledb.ArraySchema(domain=domain, sparse=False, attrs=[attr])\n", "issue": "Four components should be three components?\nIn the recently created example \"writing_dense_rgb.py\" there is this fragment:\r\nhttps://github.com/TileDB-Inc/TileDB-Py/blob/75ddcf56ed80ba5e1a1237b7e527ec4fbd87abb9/examples/writing_dense_rgb.py#L56-L57\r\n\r\nIt says four int32 components where it seems like it should be three int32 components. After all the values of the attribute are RGB and not RGBA.\n", "before_files": [{"content": "# writing_dense_rgb.py\n#\n# LICENSE\n#\n# The MIT License\n#\n# Copyright (c) 2021 TileDB, Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n# copies of the Software, and to permit persons to whom the Software is\n# furnished to do so, subject to the following conditions:\n#\n# The above copyright notice and this permission notice shall be included in\n# all copies or substantial portions of the Software.\n#\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n# THE SOFTWARE.\n#\n# DESCRIPTION\n#\n# Please see the TileDB documentation for more information:\n#   https://docs.tiledb.com/main/solutions/tiledb-embedded/api-usage/writing-arrays/writing-in-dense-subarrays\n#\n# When run, this program will create a 2D+1 multi-component (eg RGB) dense array, write some\n# data to it, and read the entire array data.\n\nimport tiledb, numpy as np\n\nimg_shape = (100, 224, 224)\nimg_uri = \"writing_dense_rgb\"\n\nimage_data = np.random.randint(low=0, high=100, size=(*img_shape, 3), dtype=np.int32)\n\n\ndef create_array():\n    domain = tiledb.Domain(\n        tiledb.Dim(\n            name=\"image_id\", domain=(0, img_shape[0] - 1), tile=4, dtype=np.int32\n        ),\n        tiledb.Dim(\n            name=\"x\", domain=(0, img_shape[1] - 1), tile=img_shape[1], dtype=np.int32\n        ),\n        tiledb.Dim(\n            name=\"y\", domain=(0, img_shape[2] - 1), tile=img_shape[2], dtype=np.int32\n        ),\n    )\n\n    # create multi-component attribute with four int32 components\n    attr = tiledb.Attr(dtype=np.dtype(\"i4, i4, i4\"))\n\n    schema = tiledb.ArraySchema(domain=domain, sparse=False, attrs=[attr])\n\n    tiledb.Array.create(img_uri, schema)\n\n    image_data_rgb = image_data.view(np.dtype(\"i4, i4, i4\"))\n\n    with tiledb.open(img_uri, \"w\") as A:\n        # write data to 1st image_id slot\n        A[:] = image_data_rgb\n\n\ndef read_array():\n    with tiledb.open(img_uri) as A:\n        print(A[:].shape)\n\n\nif __name__ == \"__main__\":\n    create_array()\n    read_array()\n", "path": "examples/writing_dense_rgb.py"}], "after_files": [{"content": "# writing_dense_rgb.py\n#\n# LICENSE\n#\n# The MIT License\n#\n# Copyright (c) 2021 TileDB, Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n# copies of the Software, and to permit persons to whom the Software is\n# furnished to do so, subject to the following conditions:\n#\n# The above copyright notice and this permission notice shall be included in\n# all copies or substantial portions of the Software.\n#\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n# THE SOFTWARE.\n#\n# DESCRIPTION\n#\n# Please see the TileDB documentation for more information:\n#   https://docs.tiledb.com/main/solutions/tiledb-embedded/api-usage/writing-arrays/writing-in-dense-subarrays\n#\n# When run, this program will create a 2D+1 multi-component (eg RGB) dense array, write some\n# data to it, and read the entire array data.\n\nimport tiledb, numpy as np\n\nimg_shape = (100, 224, 224)\nimg_uri = \"writing_dense_rgb\"\n\nimage_data = np.random.randint(low=0, high=100, size=(*img_shape, 3), dtype=np.int32)\n\n\ndef create_array():\n    domain = tiledb.Domain(\n        tiledb.Dim(\n            name=\"image_id\", domain=(0, img_shape[0] - 1), tile=4, dtype=np.int32\n        ),\n        tiledb.Dim(\n            name=\"x\", domain=(0, img_shape[1] - 1), tile=img_shape[1], dtype=np.int32\n        ),\n        tiledb.Dim(\n            name=\"y\", domain=(0, img_shape[2] - 1), tile=img_shape[2], dtype=np.int32\n        ),\n    )\n\n    # create multi-component attribute with three int32 components\n    attr = tiledb.Attr(dtype=np.dtype(\"i4, i4, i4\"))\n\n    schema = tiledb.ArraySchema(domain=domain, sparse=False, attrs=[attr])\n\n    tiledb.Array.create(img_uri, schema)\n\n    image_data_rgb = image_data.view(np.dtype(\"i4, i4, i4\"))\n\n    with tiledb.open(img_uri, \"w\") as A:\n        # write data to 1st image_id slot\n        A[:] = image_data_rgb\n\n\ndef read_array():\n    with tiledb.open(img_uri) as A:\n        print(A[:].shape)\n\n\nif __name__ == \"__main__\":\n    create_array()\n    read_array()\n", "path": "examples/writing_dense_rgb.py"}]}