<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def GetInstanceInfo(r, instance, static=None):
 """ Gets information about an instance. @type instance: string @param instance: Instance name @rtype: string @return: Job ID """


    if static is None:
        return r.request("get", "/2/instances/%s/info" % instance)
    else:
        return r.request("get", "/2/instances/%s/info" % instance,
                         query={"static": static})