class_docstr: Returns the ps task index for placement using a hash of the op name.
docstr: Create a new `_OpNameHashStrategy`.
  
  Args:
    num_tasks: Number of ps tasks to cycle among.
code: def __init__(self, num_tasks):
      """Create a new `_OpNameHashStrategy`.
  
      Args:
        num_tasks: Number of ps tasks to cycle among.
      """
  
      self._num_tasks = num_tasks
  
file_path: adanet/adanet/distributed/devices.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import contextlib
  import hashlib
label_desc: Use image node_id 1 to create a new _OpNameHashStrategy object from inherited base classes: object with example: obj = _OpNameHashStrategy(num_tasks)