how i change a parent component from a child

i try GetComponent In Parent and it dosnt work, i whant from the child to change SpriteRenderer. enabled = true

transform.parent.GetComponent()