def METHOD_NAME(Script, code, full_name):
    s = Script(code)
    cos, = s.infer()
    wanted = ('typeshed', 'stdlib', '2and3', 'math.pyi')
    assert cos.module_path.parts[-4:] == wanted
    assert cos.is_stub() is True
    assert cos.goto(only_stubs=True) == [cos]
    assert cos.full_name == full_name
    cos, = s.goto()
    assert cos.module_path.parts[-4:] == wanted
    assert cos.goto(only_stubs=True) == [cos]
    assert cos.is_stub() is True
    assert cos.full_name == full_name