code: def _check_jobs(self, attribute: attr.Attribute, n_jobs: int) -> None:
      """Checks if a given number of processes is correct.
  
      Args:
          attribute: The attribute.
          n_jobs: The number of processes to check the validity.
  
      Raises:
          ValueError: If the number of processes is invalid.
  
      """
      if n_jobs is not None and n_jobs < -1:
          raise ValueError(
              f"'n_jobs' must be None, or equal to -1, or > 0 (got {n_jobs})"
          )
  
imports: import os
  import attr
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: _check_jobs(attribute, n_jobs) without return types