That’s the second creepy photo of a kid with a snake I’ve seen this week. The other was less creepy, because the kid was older, but the giant snake climbed up the child (who was seated at a desk) and draped itself over the head, coming thiiiiis close to going around the neck. Then the child brushes the snake aside and the snake lets it do so, and the video ends.
Snakes are fun to play with, and I can see keeping a smaller one around. They are more like fish than like actual pets – a living amusement, not a part of the family like a cat or dog or even a rabbit can be.
But I don’t think snakes are smart enough or social enough to have a sense of “this animal is part of my social group”, so I would guess the snake just thinks:
harmful/harmless
prey/not prey
warm/not warm
provides food/doesn’t provide food
And any of those categories could change. I would not keep a snake large enough to eat me or my child. Come to think of it, I wouldn’t keep a snake large enough to eat my cat.