how to grapheditor select keyframes

i want by means of python select a specific key frame, in graph editor.
and then select also the next 50 frames after it for a specific object.

psudo code

bpy.grapheditor.select(“sphere1”, framestart 10, frameend 60)

is there some way of doing that ?.