code: def set_requested_traces(self, run: "Run", requested_traces):
      self.run = run
      for requested_trace in requested_traces:
          trace_name = requested_trace.name
          context = Context(requested_trace.context)
          trace = run._get_sequence(self.seq_type, trace_name, context)
          if not trace:
              continue
          self.requested_traces.append(trace)
  
imports: import asyncio
  import time
  from typing import Iterable, Iterator, List, Tuple, Union, Optional
  from typing import TYPE_CHECKING
  from aim.web.api.runs.utils import ASYNC_SLEEP_INTERVAL, PROGRESS_KEY_SUFFIX, IndexRange, collect_streamable_data, get_run_props, get_run_params
  from aim.web.configs import AIM_PROGRESS_REPORT_INTERVAL
  from aim.sdk.uri_service import URIService, generate_resource_path
  from aim.sdk.sequence_collection import SequenceCollection
  from aim.sdk.sequence import Sequence
  from aim.storage.treeutils import encode_tree
  from aim.storage.context import Context
label_desc: Use image node_id 4 for calling the CustomObjectApi obj's underlying member method code with example usage: obj.set_requested_traces(run, requested_traces) without return types