code: def _getattrs(self, obj, *attrs):
          
          filtered_attrs = {}
          for attr in attrs:
              if hasattr(obj, attr):
                  filtered_attrs[attr] = obj_to_string(
                      self._filter_value(getattr(obj, attr))
                  )
          return filtered_attrs
docs: Return dictionary of given attrs on given object, if they exist,
          processing through _filter_value().