def __repr__(self):
filters = '<STR_LIT>'<EOL>if len(self.filters) > <NUM_LIT:1> or self.filters and (<EOL>self.filters[<NUM_LIT:0>].name != self.name or self.filters[<NUM_LIT:0>].args):<EOL><INDENT>filters = '<STR_LIT:U+0020>' + '<STR_LIT>'.join(map(str, self.filters))<EOL><DEDENT>result = '<STR_LIT>' % {<EOL>'<STR_LIT>': self.__class__.__name__,<EOL>'<STR_LIT:name>': ('<STR_LIT>' % self.name) if self.name else '<STR_LIT>',<EOL>'<STR_LIT>': filters,<EOL>'<STR_LIT>': '<STR_LIT:U+0020>' * self.get_level(),<EOL>}<EOL>return result<EOL>
String representation of a ``Resource`` instance.

        Returns
        -------
        str
            The string representation of the current ``Resource`` instance.

        Example
        -------

        >>> Resource(name='bar', filters=[
        ...     Filter('foo', args=[
        ...         PosArg(1),
        ...         NamedArg('a', '=', 2)
        ...     ]),
        ...     Filter('filter', args=[
        ...         PosArg(3)
        ...     ])
        ... ], is_root=True)
        <Resource[bar] .foo(1, a=2).filter(3) />