code: def _get_run_from_cli_set_runid(obj, run_id):
      # This run-id will be set from the command line args.
      # So if we hit a MetaflowNotFound exception / Namespace mismatch then
      # we should raise an exception
      from metaflow import Run
  
      flow_name = obj.flow.name
      if len(run_id.split("/")) > 1:
          raise CommandException(
              "run_id should NOT be of the form: `<flowname>/<runid>`. Please provide only run-id"
          )
      try:
          pathspec = "%s/%s" % (flow_name, run_id)
          # Since we are looking at all namespaces,
          # we will not
          namespace(None)
          return Run(pathspec)
      except MetaflowNotFound:
          raise CommandException(
              "No run (%s) found for *%s*." % (run_id, flow_name)
          )
  
imports: from metaflow.client import Task
  from metaflow import JSONType, namespace
  from metaflow.util import resolve_identity
  from metaflow.exception import CommandException, MetaflowNotFound, MetaflowNamespaceMismatch
  import webbrowser
  import re
  from metaflow._vendor import click
  import os
  import json
  import uuid
  import signal
  import random
  from contextlib import contextmanager
  from functools import wraps
  from metaflow.exception import MetaflowNamespaceMismatch
  from .card_datastore import CardDatastore, NUM_SHORT_HASH_CHARS
  from .exception import CardClassFoundException, IncorrectCardArgsException, UnrenderableCardException, CardNotPresentException, TaskNotFoundException
  import traceback
  from collections import namedtuple
  from .card_resolver import resolve_paths_from_task, resumed_info
label_desc: Use image node_id 18 for calling a global function with example usage: _get_run_from_cli_set_runid(obj, run_id) and returns: Run