def _validate_dict_or_string(s):
    """
	A validation method to convert input s to string or dictionary and raise error if it is not convertable
	"""
    if isinstance(s, str) or isinstance(s, dict):
        return s
    try:
        return str(s)
    except ValueError:
        raise ValueError('Could not convert input to dict or string')
