def METHOD_NAME():
    """
    ensure that threshold_map returns reasonable objects with random inputs
    in the correct format
    Note: using 3D array as img, some parameters are optional and are all tested
    """
    img = np.random.random((10, 10, 10))  # 3D array must of of size S
    min_cluster_size = random.randint(1, 100)
    threshold = random.random()
    mask = np.random.randint(2, size=1000)
    assert utils.threshold_map(img, min_cluster_size) is not None
    # test threshold_map with different optional parameters
    assert utils.threshold_map(img, min_cluster_size, threshold=threshold) is not None
    assert utils.threshold_map(img, min_cluster_size, mask=mask) is not None
    assert utils.threshold_map(img, min_cluster_size, binarize=False) is not None
    assert utils.threshold_map(img, min_cluster_size, sided="one") is not None
    assert utils.threshold_map(img, min_cluster_size, sided="bi") is not None