is_option_spec_like
is_option_spec_like(obj, allow_enums=True):
LLM Docstring
Test whether an object can be destructured into a (method, options) option
specification.
obj:Anythe object to test
allow_enums:boolallow enum members (using their
valueas the method):returns:boolwhether the object is option-spec-like