parameters: (v,min_v,max_v)
return_statement: return v
docstring: constrain a value
docstring_summary: constrain a value
docstring_tokens: constrain a value
function: def constrain(v,min_v,max_v):
      '''constrain a value'''
      if v < min_v:
          v = min_v
      if v > max_v:
          v = max_v
      return v
function_tokens: def constrain ( v , min_v , max_v ) : if v < min_v : v = min_v if v > max_v : v = max_v return v