class_docstr: Defines the status of a `TimeStep` within a sequence.
class_docstr_tok: ["Defines","the","status","of","a","`","TimeStep","`","within","a","sequence","."]
docstr: Add ability to create StepType constants from a value.
docstr_tok: ["Add","ability","to","create","StepType","constants","from","a","value","."]
code: def __new__(cls, value):
      """Add ability to create StepType constants from a value."""
      if value == cls.FIRST:
          return cls.FIRST
      if value == cls.MID:
          return cls.MID
      if value == cls.LAST:
          return cls.LAST
  
      raise ValueError(
          "No known conversion for `%r` into a StepType" % value
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import pprint
  from typing import NamedTuple, Optional
  import numpy
  import tensorflow
  from tf_agents.specs import array_spec
  from tf_agents.specs import tensor_spec
  from tf_agents.typing import types
label_desc: Use image node_id 1 for calling the StepType obj's underlying member method code with example usage: obj.__new__(cls, value) and returns: cls, cls, cls