code: def create_cancel_operation(cls, cancel_operation, **kwargs):
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async'):
              return cls._create_cancel_operation_with_http_info(cancel_operation, **kwargs)
          else:
              (data) = cls._create_cancel_operation_with_http_info(cancel_operation, **kwargs)
              return data
docs: Create CancelOperation
  
          Create a new CancelOperation
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async=True
          >>> thread = api.create_cancel_operation(cancel_operation, async=True)
          >>> result = thread.get()
  
          :param async bool
          :param CancelOperation cancel_operation: Attributes of cancelOperation to create (required)
          :return: CancelOperation
                   If the method is called asynchronously,
                   returns the request thread.