docstr: Sets the State label to the PR.
docstr_tok: ["Sets","the","State","label","to","the","PR","."]
code: def set_state(self, state):
      """Sets the State label to the PR."""
      self.pull.add_to_labels(state.value)
  
imports: import enum
  import os
  import shlex
  from pathlib import Path
  from functools import lru_cache, partial
  import tempfile
  import click
  import github
  from .utils.git import git
  from .utils.logger import logger
  from .crossbow import Repo, Queue, Config, Target, Job, CommentReport
label_desc: Use image node_id 9 for calling the PullRequestWorkflowBot obj's underlying member method code with example usage: obj.set_state(state) without return types