def METHOD_NAME(mapdl, cube_geom_and_mesh):
    mapdl.allsel()
    with pytest.warns(UserWarning):
        mapdl.components["mycomp"] = (1, 2, 3)
    mapdl.components.default_entity_warning = False
    with warnings.catch_warnings():
        mapdl.components["mycomp"] = (1, 2, 3)
    mapdl.components.default_entity_warning = True