class_docstr: Class defined to run custom commands.
docstr: Actual method called to run the build command
  :return:
docstr_tok: ["Actual","method","called","to","run","the","build","command",":","return",":"]
code: def run(self):
      """
      Actual method called to run the build command
      :return:
      """
      front_end_bin_dir = os.path.abspath(".") + "/ts/frontend"
      try:
          os.mkdir(front_end_bin_dir)
      except OSError as exc:
          if exc.errno == errno.EEXIST and os.path.isdir(
              front_end_bin_dir
          ):
              pass
          else:
              raise
  
      if os.path.exists(self.source_server_file):
          os.remove(self.source_server_file)
  
      try:
          subprocess.check_call(
              build_frontend_command[platform.system()], shell=True
          )
      except OSError:
          assert 0, "build failed"
      copy2(self.source_server_file, self.dest_file_name)
  
imports: import errno
  import os
  import platform
  import subprocess
  import sys
  from datetime import date
  from shutil import copy2, rmtree
  import setuptools.command.build_py
  from setuptools import Command, find_packages, setup
  import ts
label_desc: Use image node_id 1 for calling the BuildFrontEnd obj's underlying member method code with example usage: obj.run() without return types