@classmethod<EOL><INDENT>def from_obj(cls, obj, any_configurable=False):<DEDENT>
discovered = cls.inspect_obj(obj)<EOL>if ((any_configurable and<EOL>'<STR_LIT>' in discovered['<STR_LIT>'] and<EOL>hasattr(obj, '<STR_LIT>'))):<EOL><INDENT>return obj<EOL><DEDENT>return cls(obj, discovered['<STR_LIT:name>'], discovered['<STR_LIT>'],<EOL>discovered['<STR_LIT>'])<EOL>
Create a proxy object from a callable.

        If `any_configurable` is true, `obj` takes a parameter named
        ``config``, and `obj` smells like it implements
        :class:`yakonfig.Configurable` (it has a
        :attr:`~yakonfig.Configurable.config_name`), then return it
        directly.