code: def test_strict_convert_map_groups(ray_start_regular_shared):
      ds = ray.data.read_csv("example://iris.csv")
  
      def process_group(group):
          variety = group["variety"][0]
          count = len(group["variety"])
  
          # Test implicit list->array conversion here.
          return {
              "variety": [variety],
              "count": [count],
          }
  
      ds = ds.groupby("variety").map_groups(process_group)
      ds.show()
  
file_path: ray/python/ray/data/tests/test_strict_mode.py
imports: from collections import UserDict
  import numpy
  import pytest
  import ray
  from ray.data.tests.conftest import *
  from ray.tests.conftest import *
label_desc: Use image node_id 4 for calling a global function with example usage: test_strict_convert_map_groups(ray_start_regular_shared) and returns: dict