docs: def _text_or_file(input_):
      '''
      Determines if input is a path to a file, or a string with the
      content to be parsed.
      '''
      if _isfile(input_):
          with salt.utils.files.fopen(input_) as fp_:
              out = salt.utils.stringutils.to_str(fp_.read())
      else:
          out = salt.utils.stringutils.to_str(input_)
  
      return out