    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
Args:
r (`MockInferenceRequest`):
The InferenceRequest to get the tensor from.
input_key (`str`):
The name of the tensor.
return:
MockTritonPythonBackendTensor
towhee/serve/triton/bls/mock/mock_pb_util.py