def METHOD_NAME(cls):
    """
    Establishes a connection to TM1 and creates a dimensions and a cube to use across all tests
    """
    # Connection to TM1
    cls.config = configparser.ConfigParser()
    cls.config.read(Path(__file__).parent.joinpath('config.ini'))
    cls.tm1 = TM1Service(**cls.config['tm1srv01'])
    # Build Dimensions
    for dimension_name in cls.dimension_names:
        elements = [Element('Element {}'.format(str(j)), 'Numeric') for j in range(1, 1001)]
        hierarchy = Hierarchy(dimension_name=dimension_name,
                              name=dimension_name,
                              elements=elements)
        dimension = Dimension(dimension_name, [hierarchy])
        cls.tm1.dimensions.update_or_create(dimension)
    # Build Cube
    cube = Cube(cls.cube_name, cls.dimension_names)
    cls.tm1.cubes.update_or_create(cube)