code: def test_to_str_transcode_disabled():
      # No transcoding enabled, set from_enc to enable
      assert strings.to_str(
          "юникод".encode("utf-8"), to_enc="utf-8"
      ) == "юникод".encode("utf-8")
      assert strings.to_str(
          "юникод".encode("utf-8"), to_enc="cp1251"
      ) == "юникод".encode("utf-8")
      assert strings.to_str(
          "юникод".encode("cp1251"), to_enc="utf-8"
      ) == "юникод".encode("cp1251")
      assert strings.to_str(
          "юникод".encode("cp1251"), to_enc="cp1251"
      ) == "юникод".encode("cp1251")
      assert strings.to_str(
          "юникод".encode("cp1251"), to_enc="koi8-r"
      ) == "юникод".encode("cp1251")
      assert strings.to_str(
          "юникод".encode("koi8-r"), to_enc="cp1251"
      ) == "юникод".encode("koi8-r")
  
imports: import pytest
  import six
  from library.python import strings
label_desc: Use image node_id 8 for calling a global function with example usage: test_to_str_transcode_disabled() without return types