code: def construct_register_size(register_size_from_yaml: int) -> str:
      if not isinstance(register_size_from_yaml, int):
          raise ValueError(
              f"Input register size is {register_size_from_yaml} and"
              "it's type is {type(register_size_from_yaml)}. An int type is expected."
          )
      return str(register_size_from_yaml)
  
file_path: pytorch/torchgen/operator_versions/gen_mobile_upgraders.py
imports: import os
  from enum import Enum
  from pathlib import Path
  from typing import Any, Dict, List
  import torch
  from torch.jit.generate_bytecode import generate_upgraders_bytecode
  from torchgen.code_template import CodeTemplate
  from torchgen.operator_versions.gen_mobile_upgraders_constant import MOBILE_UPGRADERS_HEADER_DESCRIPTION
label_desc: Use image node_id 5 for calling a global function with example usage: construct_register_size(register_size_from_yaml) and returns: str