class_docstr: mock triton_python_backend_utils, used in UT.
class_docstr_tok: ["mock","triton_python_backend_utils",",","used","in","UT","."]
docstr: Args:
      r (`MockInferenceRequest`):
          The InferenceRequest to get the tensor from.
      input_key (`str`):
          The name of the tensor.
  return:
      MockTritonPythonBackendTensor
docstr_tok: ["Args",":","r","(","`","MockInferenceRequest","`",")",":","The","InferenceRequest","to","get","the","tensor","from",".","input_key","(","`","str","`",")",":","The","name","of","the","tensor",".","return",":","MockTritonPythonBackendTensor"]
code: def get_input_tensor_by_name(r, input_key):
      """
      Args:
          r (`MockInferenceRequest`):
              The InferenceRequest to get the tensor from.
          input_key (`str`):
              The name of the tensor.
      return:
          MockTritonPythonBackendTensor
      """
      for item in r.inputs():
          if item.name() == input_key:
              return item
      return None
  
imports: from typing import List, Any
label_desc: Use image node_id 1 for calling the MockTritonPythonBackendUtils obj's underlying member method code with example usage: obj.get_input_tensor_by_name(r, input_key) and returns: None, item