code: def is_string(context):
      if context.evaluator.environment.version_info.major == 2:
          str_classes = (unicode, bytes)
      else:
          str_classes = (unicode,)
      return is_compiled(context) and isinstance(
          context.get_safe_value(default=None), str_classes
      )
  
imports: import copy
  import sys
  import re
  import os
  from itertools import chain
  from contextlib import contextmanager
  from parso.python import tree
  from jedi._compatibility import unicode
  from jedi.parser_utils import get_parent_scope
label_desc: Use image node_id 9 for calling a global function with example usage: is_string(context) and returns: unknown