code: def set_scm(scm):
    
    if scm is not None:
      if not isinstance(scm, Scm):
        raise ValueError('The scm must be an instance of Scm, given {}'.format(scm))
      global _SCM
      _SCM = scm
docs: Sets the pants Scm.