def METHOD_NAME(patch_size):
    """
    This function reads the value from the configuration and returns an appropriate tuple for torchio to ingest.
    Args:
        patch_size (Union[list, tuple, array]): The generic list/tuple/array to check.
    Returns:
        tuple: The tuple to be ingested by torchio.
    """
    patch_size_new = np.array(patch_size)
    if len(patch_size) == 2:
        patch_size_new = tuple(
            np.append(
                np.array(patch_size),
                1,
            )
        )
    return patch_size_new