code: def str_check(*args, func=None):
      
      func = func or inspect.stack()[2][3]
      for var in args:
          if not isinstance(var, (str, collections.UserString, collections.abc.Sequence)):
              name = type(var).__name__
              raise StringError(
                  f'Function {func} expected str, {name} got instead.')
docs: Check if arguments are str type.