code: def _find_run_by_name(self, name: str) -> Run:
      repo = self.repo
      for run in repo.iter_runs():
          if run.name == name or run.get("name") == name:
              return run
      return None
  
imports: import pytest
  import numpy
  from parameterized import parameterized
  from tests.base import PrefilledDataApiTestBase, ApiTestBase
  from tests.utils import decode_encoded_tree_stream
  from aim.storage.treeutils import decode_tree
  from aim.sdk.run import Run
label_desc: Use image node_id 9 for calling the TestRunApi obj's underlying member method code with example usage: obj._find_run_by_name(name) and returns: None, run