class_docstr: Resample feature map for downsampling or upsampling.
code: def _upsample2d(self, inputs, target_height, target_width):
      return tf.cast(
          tf.image.resize(
              tf.cast(inputs, tf.float32),
              [target_height, target_width],
              method=self.upsampling_type,
          ),
          inputs.dtype,
      )
  
imports: import functools
  from absl import logging
  import numpy
  import tensorflow
  import utils
  from .None import fpn_configs
label_desc: Use image node_id 3 for calling the ResampleFeatureMap obj's underlying member method code with example usage: obj._upsample2d(inputs, target_height, target_width) and returns: tf