def get_obj_id(self, item):
if item is not None:<EOL><INDENT>if isinstance(item, six.string_types):<EOL><INDENT>return item<EOL><DEDENT>elif hasattr(item, '<STR_LIT:id>'):<EOL><INDENT>return item.id<EOL><DEDENT><DEDENT>
Get the id of a PumpObject.

        :param item: id string or PumpObject