code: def pad_float_tensor(
      input_tensor: torch.Tensor,
      batch_padding_control: Optional[List[int]] = None,
  ) -> torch.Tensor:
      """Pad a tensor to with zeros given batch_padding_control, first dimention is batch size."""
      shape = input_tensor.shape
      bs = shape[0]
      max_batch_len = pad_length(bs, batch_padding_control, -1)
      shape[0] = max_batch_len - bs
      pad_tensor = input_tensor.new_zeros(shape)
      new_tensor = torch.cat([input_tensor, pad_tensor], 0)
      return new_tensor
  
imports: from typing import List, NamedTuple, Optional, Tuple
  import torch
  from torch import Tensor
label_desc: Use image node_id 7 for calling a global function with example usage: pad_float_tensor(input_tensor, batch_padding_control) and returns: new_tensor