@classmethod
    def _getApiObjs(cls, item, tryCast=True):
        if isinstance(item, DagNode):
            return ( item.__apimdagpath__(), _api.MObject() )
        elif isinstance(item, (DependNode, general.Attribute) ):
            return ( item.__apiobject__(), )
        elif isinstance(item, general.Component):
            return ( item.__apimdagpath__(), item.__apimobject__() )
        elif tryCast:
            return cls._getApiObjs(general.PyNode(item), tryCast=False)
        else:
            raise TypeError(item)
Returns a tuple of api objects suitable (after unpacking) for
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/ObjectSet._getApiObjs