def METHOD_NAME(cls):
    """Setup that is required for all tests
    Uses a temporary region for testing and creates an imagery group and
    randomly samples a categorical map to use as training pixels/points
    """
    cls.use_temp_region()
    cls.runModule("g.region", raster=cls.classif_map)
    cls.runModule(
        "i.group",
        group=cls.group,
        input=[cls.band1, cls.band2, cls.band3, cls.band4, cls.band5, cls.band7],
    )
    cls.runModule(
        "r.random",
        input=cls.classif_map,
        npoints=1000,
        raster=cls.labelled_pixels,
        seed=1234,
    )
    cls.runModule(
        "r.to.vect",
        input=cls.labelled_pixels,
        output=cls.labelled_points,
        type="point",
    )