class_docstr: Service for executing delegated operations.
docstr: Sets the pinned flag for the given delegated operation.
  
  Args:
      doc_id: the ID of the delegated operation
      pinned (True): the boolean pinned flag
  
  Returns:
      a :class:`fiftyone.factory.repos.DelegatedOperationDocument`
docstr_tok: ["Sets","the","pinned","flag","for","the","given","delegated","operation",".","Args",":","doc_id",":","the","ID","of","the","delegated","operation","pinned","(","True",")",":","the","boolean","pinned","flag","Returns",":","a",":","class",":","`","fiftyone.factory.repos.DelegatedOperationDocument","`"]
code: def set_pinned(self, doc_id, pinned=True):
      """Sets the pinned flag for the given delegated operation.
  
      Args:
          doc_id: the ID of the delegated operation
          pinned (True): the boolean pinned flag
  
      Returns:
          a :class:`fiftyone.factory.repos.DelegatedOperationDocument`
      """
      return self._repo.set_pinned(_id=doc_id, pinned=pinned)
  
imports: import asyncio
  import logging
  import traceback
  from fiftyone.factory.repo_factory import RepositoryFactory
  from fiftyone.factory import DelegatedOperationPagingParams
  from fiftyone.operators.executor import prepare_operator_executor, do_execute_operator, ExecutionResult, ExecutionRunState
label_desc: Use image node_id 7 for calling the DelegatedOperationService obj's underlying member method code with example usage: obj.set_pinned(doc_id, pinned) and returns: self