code: def cast_string_literal_to_string_view(
      context, builder, fromty, toty, val
  ):
      """
      Cast a literal to a string_view
      """
      # create an empty string_view
      sv = cgutils.create_struct_proxy(string_view)(context, builder)
  
      # set the empty strview data pointer to point to the literal value
      sv.data = context.insert_string_const_addrspace(
          builder, fromty.literal_value
      )
      sv.length = context.get_constant(
          size_type, len(fromty.literal_value)
      )
      sv.bytes = context.get_constant(
          size_type, len(fromty.literal_value.encode("UTF-8"))
      )
  
      return sv._getvalue()
  
imports: import operator
  from functools import partial
  from numba import cuda, types
  from numba.core import cgutils
  from numba.core.datamodel import default_manager
  from numba.core.typing import signature
  from numba.cuda.cudaimpl import lower, registry
  from cudf._lib.strings_udf import get_character_cases_table_ptr, get_character_flags_table_ptr, get_special_case_mapping_table_ptr
  from cudf.core.udf.masked_typing import MaskedType
  from cudf.core.udf.strings_typing import size_type, string_view, udf_string
label_desc: Use image node_id 4 for calling a global function with example usage: cast_string_literal_to_string_view(context, builder, fromty, toty, val) and returns: sv