code: def __init__(self, body):
      self.body = json.dumps(body).encode("utf-8")
  
file_path: mlflow/tests/dev/test_update_ml_package_versions.py
imports: import json
  import re
  from pathlib import Path
  from unittest import mock
  import pytest
  from dev import update_ml_package_versions
label_desc: Use image node_id 1 to create a new MockResponse object  with example: obj = MockResponse(body)