code: def test_get_keys_predetermined_key_location(self, r):
      commands_parser = CommandsParser(r)
      args1 = ["GET", "foo"]
      args2 = ["OBJECT", "encoding", "foo"]
      args3 = ["MGET", "foo", "bar", "foobar"]
      assert commands_parser.get_keys(r, *args1) == ["foo"]
      assert commands_parser.get_keys(r, *args2) == ["foo"]
      assert commands_parser.get_keys(r, *args3) == [
          "foo",
          "bar",
          "foobar",
      ]
  
file_path: redis-py/tests/test_command_parser.py
imports: import pytest
  from redis._parsers import CommandsParser
  from .conftest import assert_resp_response, skip_if_redis_enterprise, skip_if_server_version_lt
label_desc: Use image node_id 2 for calling the TestCommandsParser obj's underlying member method code with example usage: obj.test_get_keys_predetermined_key_location(r) without return types