class_docstr: Defines the interface for metrics that operate on trajectories.
docstr: Processes a trajectory to update the metric.
  
  Args:
    trajectory: A trajectory.Trajectory.
docstr_tok: ["Processes","a","trajectory","to","update","the","metric",".","Args",":","trajectory",":","A","trajectory.Trajectory","."]
code: def call(self, trajectory: traj.Trajectory):
      """Processes a trajectory to update the metric.
  
      Args:
        trajectory: A trajectory.Trajectory.
      """
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  from typing import Any, Optional, Sequence, Text, Union
  from absl import logging
  import numpy
  import six
  import tensorflow
  from tf_agents.metrics import tf_metric
  from tf_agents.trajectories import trajectory
  from tf_agents.typing import types
  from tf_agents.utils import common
label_desc: Use image node_id 1 for calling the PyStepMetric obj's underlying member method code with example usage: obj.call(trajectory) without return types