parameters: (num)
docstring: Set a new global configuration default value for the number of parallel workers.
      This setting will affect the parallelism of all dataset operation.
  
      Args:
          num (int): Number of parallel workers to be used as a default for each operation.
  
      Raises:
          ValueError: If num_parallel_workers is invalid when num <= 0 or num > MAX_INT_32.
  
      Examples:
          >>> # Set a new global configuration value for the number of parallel workers.
          >>> # Now parallel dataset operators will run with 8 workers.
          >>> ds.config.set_num_parallel_workers(8)
docstring_summary: Set a new global configuration default value for the number of parallel workers.
      This setting will affect the parallelism of all dataset operation.
docstring_tokens: Set a new global configuration default value for the number of parallel workers . This setting will affect the parallelism of all dataset operation .
function: def set_num_parallel_workers(num):
      """
      Set a new global configuration default value for the number of parallel workers.
      This setting will affect the parallelism of all dataset operation.
  
      Args:
          num (int): Number of parallel workers to be used as a default for each operation.
  
      Raises:
          ValueError: If num_parallel_workers is invalid when num <= 0 or num > MAX_INT_32.
  
      Examples:
          >>> # Set a new global configuration value for the number of parallel workers.
          >>> # Now parallel dataset operators will run with 8 workers.
          >>> ds.config.set_num_parallel_workers(8)
      """
      if not isinstance(num, int):
          raise ValueError("num isn't of type int.")
      if num <= 0 or num > INT32_MAX:
          raise ValueError("Number of parallel workers given is not within the required range.")
      _config.set_num_parallel_workers(num)
function_tokens: def set_num_parallel_workers ( num ) : if not isinstance ( num , int ) : raise ValueError ( "num isn't of type int." ) if num <= 0 or num > INT32_MAX : raise ValueError ( "Number of parallel workers given is not within the required range." ) _config . set_num_parallel_workers ( num )