def METHOD_NAME(self):
    output = mock.create_autospec(output_lib.Output)
    w = writer_lib.Writer(output)
    w.add_scalar("foo", np.float32(42.0), np.int64(12))
    output.emit_scalar.assert_called_once_with(
        plugin_name="scalars",
        tag="foo",
        data=np.float32(42.0),
        step=np.int64(12),
        wall_time=mock.ANY,
        description=None,
    )
    _, kwargs = output.emit_scalar.call_args
    self.assertEqual(np.float32, type(kwargs["data"]))
    self.assertEqual(np.int64, type(kwargs["step"]))