code: def _run_to_json_static(
      flow_name, run_id=None, tags=None, sys_tags=None
  ):
      if run_id is not None:
          d = {"run_number": run_id}
      else:
          d = {}
      d.update(
          MetadataProvider._all_obj_elements_static(
              flow_name, tags, sys_tags
          )
      )
      return d
  
imports: import json
  import os
  import re
  import time
  from collections import namedtuple
  from itertools import chain
  from metaflow.exception import MetaflowInternalError, MetaflowTaggingError
  from metaflow.tagging_util import validate_tag
  from metaflow.util import get_username, resolve_identity_as_tuple, is_stringish
label_desc: Use image node_id 23 for calling the MetadataProvider obj's underlying member method code with example usage: obj._run_to_json_static(flow_name, run_id, tags, sys_tags) and returns: d