code: def script_extension(char):
      """Return the script extension property assigned to the Unicode character
      'char' as a set of string.
  
      >>> script_extension("a") == {'Latn'}
      True
      >>> script_extension(chr(0x060C)) == {'Rohg', 'Syrc', 'Yezi', 'Arab', 'Thaa', 'Nkoo'}
      True
      >>> script_extension(chr(0x10FFFF)) == {'Zzzz'}
      True
      """
      code = byteord(char)
      i = bisect_right(ScriptExtensions.RANGES, code)
      value = ScriptExtensions.VALUES[i - 1]
      if value is None:
          # code points not explicitly listed for Script Extensions
          # have as their value the corresponding Script property value
          return {script(char)}
      return value
  
file_path: catboost/contrib/python/fonttools/fontTools/unicodedata/__init__.py
imports: from __future__ import annotations
  from fontTools.misc.textTools import byteord, tostr
  import re
  from bisect import bisect_right
  from typing import Literal, TypeVar, overload
  from .None import Blocks, Scripts, ScriptExtensions, OTTags
label_desc: Use image node_id 2 for calling a global function with example usage: script_extension(char) and returns: value, unknown