class_docstr: Builder is the base class to build extensions for PyTorch.
  
  Args:
      name (str): the name of the kernel to be built
      prebuilt_import_path (str): the path where the extension is installed during pip install
docstr: This function takes in a path relative to the colossalai root directory and return the absolute path.
docstr_tok: ["This","function","takes","in","a","path","relative","to","the","colossalai","root","directory","and","return","the","absolute","path","."]
code: def relative_to_abs_path(self, code_path: str) -> str:
      """
      This function takes in a path relative to the colossalai root directory and return the absolute path.
      """
      op_builder_module_path = Path(__file__).parent
  
      # if we install from source
      # the current file path will be op_builder/builder.py
      # if we install via pip install colossalai
      # the current file path will be colossalai/kernel/op_builder/builder.py
      # this is because that the op_builder inside colossalai is a symlink
      # this symlink will be replaced with actual files if we install via pypi
      # thus we cannot tell the colossalai root directory by checking whether the op_builder
      # is a symlink, we can only tell whether it is inside or outside colossalai
      if str(op_builder_module_path).endswith(
          "colossalai/kernel/op_builder"
      ):
          root_path = op_builder_module_path.parent.parent
      else:
          root_path = op_builder_module_path.parent.joinpath(
              "colossalai"
          )
  
      code_abs_path = root_path.joinpath(code_path)
      return str(code_abs_path)
  
imports: import importlib
  import os
  import time
  from abc import ABC, abstractmethod
  from pathlib import Path
  from typing import List, Optional, Union
  from .utils import check_cuda_availability, check_system_pytorch_cuda_match, print_rank_0
label_desc: Use image node_id 2 for calling the Builder obj's underlying member method code with example usage: obj.relative_to_abs_path(code_path) and returns: str