code: def _strip_value(value, lookup='exact'):
      
      if lookup == 'in':
          stripped_value = [_strip_object(el) for el in value]
      else:
          stripped_value = _strip_object(value)
      return stripped_value
docs: Helper function to remove the branch and version information from the given value,
      which could be a single object or a list.