code: def _linear(position: tf.Tensor) -> tf.Tensor:
      """B-Spline basis functions of degree 1 for positions in the range [0, 1]."""
      # Piecewise linear splines are C0 smooth.
      return tf.stack((1.0 - position, position), axis=-1)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import enum
  from typing import Tuple, Union
  import tensorflow
  from tensorflow_graphics.util import asserts
  from tensorflow_graphics.util import export_api
  from tensorflow_graphics.util import shape
  from tensorflow_graphics.util import type_alias
label_desc: Use image node_id 2 for calling a global function with example usage: _linear(position) and returns: tf