code: def arabic_digit_to_thai_digit(text: str) -> str:
      
      if not text or not isinstance(text, str):
          return ""
  
      newtext = []
      for ch in text:
          if ch in _arabic_thai:
              newtext.append(_arabic_thai[ch])
          else:
              newtext.append(ch)
  
      return "".join(newtext)
docs: :param str text: Text with Arabic digits such as '1', '2', '3'
      :return: Text with Arabic digits being converted to Thai digits such as '๑', '๒', '๓'